Skip to content

Commit fafc3a1

Browse files
committed
refactor: use constants directly
1 parent 8339a6f commit fafc3a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ferrum/frame/runtime.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,8 @@ def add_style_tag(url: nil, path: nil, content: nil)
184184

185185
def call(expression:, arguments: [], on: nil, wait: 0, handle: true, **options)
186186
errors = [NodeNotFoundError, NoExecutionContextError]
187-
sleep = INTERMITTENT_SLEEP
188-
attempts = INTERMITTENT_ATTEMPTS
189187

190-
Utils::Attempt.with_retry(errors: errors, max: attempts, wait: sleep) do
188+
Utils::Attempt.with_retry(errors: errors, max: INTERMITTENT_ATTEMPTS, wait: INTERMITTENT_SLEEP) do
191189
params = options.dup
192190

193191
if on

0 commit comments

Comments
 (0)