Add some whitespaces for readability

This commit is contained in:
Sijawusz Pur Rahnama 2022-04-04 22:17:41 +02:00
parent 306bc34019
commit 48d0089d23
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ module Ameba::Rule::Performance
it "allows to configure object_call_names" do
rule = Rule::Performance::AnyAfterFilter.new
rule.filter_names = %w(select)
expect_no_issues rule, <<-CRYSTAL
[1, 2, 3].reject { |e| e > 2 }.any?
CRYSTAL

View File

@ -47,6 +47,7 @@ module Ameba::Rule::Performance
it "allows to configure `call_names`" do
rule = ChainedCallWithNoBang.new
rule.call_names = %w(uniq)
expect_no_issues rule, <<-CRYSTAL
[1, 2, 3].select { |e| e > 2 }.reverse
CRYSTAL