Skip to content

Commit

Permalink
Merge pull request #248 from ifad/chore/fix-and-or-offense
Browse files Browse the repository at this point in the history
Fix Style/AndOr offense
  • Loading branch information
tagliala authored Nov 1, 2023
2 parents 0b529ab + dc1e7fb commit 66bab95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/chrono_model/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 66bab95

Please sign in to comment.