Skip to content

Commit

Permalink
Fix uninitialized ivar warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Feb 10, 2024
1 parent 51c1fcf commit ee4005e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/online_migrations/command_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def check_database_version
end

def set_statement_timeout
if !@statement_timeout_set
if !defined?(@statement_timeout_set)
if (statement_timeout = OnlineMigrations.config.statement_timeout)
# TODO: inline this method call after deprecated `disable_statement_timeout` method removal.
connection.__set_statement_timeout(statement_timeout)
Expand Down

0 comments on commit ee4005e

Please sign in to comment.