DEV: Apply Rubocop redundant return style

This commit is contained in:
Penar Musaraj
2019-11-14 15:10:51 -05:00
parent be15abcf7f
commit 067696df8f
30 changed files with 45 additions and 45 deletions

View File

@ -14,7 +14,7 @@ module ActiveRecord
module ClassMethods
# this is for Rails 5
def enforce_raw_sql_whitelist(*args)
return
nil
end
BLANK_ARRAY = [].freeze
@ -23,7 +23,7 @@ module ActiveRecord
def disallow_raw_sql!(args, permit: nil)
# we may consider moving to https://github.com/rails/rails/pull/33330
# once all frozen string hints are in place
return BLANK_ARRAY
BLANK_ARRAY
end
end
end