diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 4d7c485..81e0a27 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.57.1. +# using RuboCop version 1.57.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -57,13 +57,6 @@ Rails/SquishedSQLHeredocs: - 'lib/chrono_model/adapter/indexes.rb' - 'lib/chrono_model/adapter/upgrade.rb' -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: always, conditionals -Style/AndOr: - Exclude: - - 'lib/chrono_model/adapter.rb' - # This cop supports unsafe autocorrection (--autocorrect-all). Style/CommentedKeyword: Exclude: diff --git a/lib/chrono_model/adapter.rb b/lib/chrono_model/adapter.rb index eb52fcd..519a941 100644 --- a/lib/chrono_model/adapter.rb +++ b/lib/chrono_model/adapter.rb @@ -113,7 +113,7 @@ def on_schema(schema, recurse: :follow) old_path = schema_search_path count_recursions do - if recurse == :follow or Thread.current['recursions'] == 1 + if (recurse == :follow) || (Thread.current['recursions'] == 1) self.schema_search_path = schema end