Skip to content

Commit

Permalink
Run rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
andershagbard committed Oct 16, 2023
1 parent 22f3cb4 commit ed41377
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/liquid/standardfilters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -989,13 +989,13 @@ def deep_search_properties(key, options = {})
options = {} unless options.is_a?(Hash)

enable = options['deep'] ? true : false
separator = options['deep'].kind_of?(String) ? options['deep'] : '.' if enable
separator = options['deep'].is_a?(String) ? options['deep'] : '.' if enable
properties = key.to_s.split(separator) if enable

{
:enable => enable,
:separator => separator,
:properties => properties
enable: enable,
separator: separator,
properties: properties,
}
end

Expand Down
2 changes: 1 addition & 1 deletion test/integration/standard_filter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def test_sort_natural_deep_off_by_default
{ "foo.key" => "Z" },
{ "foo.fake" => "t" },
]
assert_equal(expectation, @filters.sort_natural(input, "foo.key" ))
assert_equal(expectation, @filters.sort_natural(input, "foo.key"))
end

def test_sort_empty_array
Expand Down

0 comments on commit ed41377

Please sign in to comment.