Fix Naming/AccessorMethodName type of Ameba issues

This commit is contained in:
Sijawusz Pur Rahnama 2026-01-11 23:20:13 +01:00
parent dc7891cddb
commit 818d4266a7
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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)