mirror of
https://github.com/iv-org/invidious.git
synced 2026-01-28 07:48:31 -06:00
Fix Naming/AccessorMethodName type of Ameba issues
This commit is contained in:
parent
dc7891cddb
commit
818d4266a7
@ -38,9 +38,6 @@ Style/ParenthesesAroundCondition:
|
||||
Naming/QueryBoolMethods:
|
||||
Enabled: false
|
||||
|
||||
Naming/AccessorMethodName:
|
||||
Enabled: false
|
||||
|
||||
Naming/BlockParameterName:
|
||||
Enabled: false
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@ module Invidious::Routes::API::V1::Authenticated
|
||||
user.preferences.to_json
|
||||
end
|
||||
|
||||
# ameba:disable Naming/AccessorMethodName
|
||||
def self.set_preferences(env)
|
||||
env.response.content_type = "application/json"
|
||||
user = env.get("user").as(User)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user