Apply automatic rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 10:51:44 +02:00
parent fe4000916c
commit 6cbecb5b39
440 changed files with 2705 additions and 1853 deletions

View File

@@ -1,7 +1,9 @@
# frozen_string_literal: true
unless Array.respond_to?(:average)
class Array
def average
inject(:+) / length unless blank?
inject(:+) / length if present?
end
end
end
@@ -9,7 +11,7 @@ end
unless Array.respond_to?(:to_h)
class Array
def to_h
Hash[self]
to_h
end
end
end