mirror of
https://github.com/iv-org/invidious.git
synced 2026-01-28 15:58:30 -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:
|
Naming/QueryBoolMethods:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Naming/AccessorMethodName:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Naming/BlockParameterName:
|
Naming/BlockParameterName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@ module Invidious::Routes::API::V1::Authenticated
|
|||||||
user.preferences.to_json
|
user.preferences.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# ameba:disable Naming/AccessorMethodName
|
||||||
def self.set_preferences(env)
|
def self.set_preferences(env)
|
||||||
env.response.content_type = "application/json"
|
env.response.content_type = "application/json"
|
||||||
user = env.get("user").as(User)
|
user = env.get("user").as(User)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user