Remove superfluous rubocop:disable comments

This commit is contained in:
Andreas Nedbal 2023-10-15 10:21:46 +02:00 committed by Andreas Nedbal
parent ace3df932a
commit f6e26f1751
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ require File.expand_path("config/application", __dir__)
Rails.application.load_tasks Rails.application.load_tasks
namespace :justask do # rubocop:disable Metrics/BlockLength namespace :justask do
desc "Gives admin status to a user." desc "Gives admin status to a user."
task :admin, [:screen_name] => :environment do |_t, args| task :admin, [:screen_name] => :environment do |_t, args|
abort "screen name required" if args[:screen_name].nil? abort "screen name required" if args[:screen_name].nil?

View file

@ -41,7 +41,7 @@ class Ajax::WebPushController < AjaxController
@response[:message] = t(".subscription_count", count: current_user.web_push_subscriptions.count) @response[:message] = t(".subscription_count", count: current_user.web_push_subscriptions.count)
end end
def unsubscribe # rubocop:disable Metrics/AbcSize def unsubscribe
removed = if params.key?(:endpoint) removed = if params.key?(:endpoint)
current_user.web_push_subscriptions.where("subscription ->> 'endpoint' = ?", params[:endpoint]).destroy_all current_user.web_push_subscriptions.where("subscription ->> 'endpoint' = ?", params[:endpoint]).destroy_all
else else

View file

@ -3,7 +3,7 @@
class InboxController < ApplicationController class InboxController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
def show # rubocop:disable Metrics/MethodLength def show
find_author find_author
find_inbox_entries find_inbox_entries

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
class User < ApplicationRecord # rubocop:disable Metrics/ClassLength class User < ApplicationRecord
include User::Relationship include User::Relationship
include User::Relationship::Follow include User::Relationship::Follow
include User::Relationship::Block include User::Relationship::Block