mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix Style/VerboseBlock
rule to work with binary operations
This commit is contained in:
parent
e1f5c81804
commit
4d0125a0f3
2 changed files with 5 additions and 1 deletions
|
@ -25,6 +25,7 @@ module Ameba::Rule::Style
|
|||
(1..3).map { |l| l.to_i64 * l.to_i64 }
|
||||
(1..3).map { |m| m.to_s[start: m.to_i64, count: 3]? }
|
||||
(1..3).map { |n| n.to_s.split.map { |z| n.to_i * z.to_i }.join }
|
||||
(1..3).map { |o| o.foo = foos[o.abs]? || 0 }
|
||||
CRYSTAL
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue