Apply manual rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 11:07:11 +02:00
parent 6cbecb5b39
commit da0a682ffb
109 changed files with 431 additions and 416 deletions

View File

@@ -3,15 +3,7 @@
unless Array.respond_to?(:average)
class Array
def average
inject(:+) / length if present?
end
end
end
unless Array.respond_to?(:to_h)
class Array
def to_h
to_h
sum / length if present?
end
end
end