Apply suggestions from code review

Co-authored-by: Vitalii Elenhaupt <3624712+veelenga@users.noreply.github.com>
This commit is contained in:
Sijawusz Pur Rahnama 2023-07-10 16:09:01 +02:00 committed by GitHub
parent ddff8d226b
commit 327ed546b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ module Ameba::Rule::Performance
subject = MinMaxAfterMap.new
describe MinMaxAfterMap do
it "passes if there is no potential performance improvements" do
it "passes if there are no potential performance improvements" do
expect_no_issues subject, <<-CRYSTAL
%w[Alice Bob].map { |name| name.size }.min(2)
%w[Alice Bob].map { |name| name.size }.max(2)