mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Revert "Fix Performance/ExcessiveAllocations
to exclude each
calls without a block"
This reverts commit 29e29b8e1d
.
This commit is contained in:
parent
a88033c8ce
commit
82e0e53080
2 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ module Ameba::Rule::Performance
|
|||
describe ExcessiveAllocations do
|
||||
it "passes if there is no potential performance improvements" do
|
||||
expect_no_issues subject, <<-CRYSTAL
|
||||
"Alice".chars.each
|
||||
"Alice".chars.each(arg) { |c| puts c }
|
||||
"Alice".chars(arg).each { |c| puts c }
|
||||
"Alice\nBob".lines.each(arg) { |l| puts l }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue