From 969a935ef7d3c9317bcd701ad8cdf0b1554fd45d Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Sat, 29 Jun 2024 11:14:03 +0300 Subject: [PATCH] chore: Fix linter --- lib/ferrum/errors.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ferrum/errors.rb b/lib/ferrum/errors.rb index bbd4fcc1..7de5e83c 100644 --- a/lib/ferrum/errors.rb +++ b/lib/ferrum/errors.rb @@ -99,8 +99,7 @@ class NodeNotFoundError < BrowserError; end class NoExecutionContextError < BrowserError def initialize(response = nil) - response ||= { "message" => "There's no context available" } - super(response) + super(response || { "message" => "There's no context available" }) end end