mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 05:58:19 +08:00
DEV: Apply Rubocop redundant return style
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user