From 3bb91932b5525ad34c12b2612922fdc1bcacbfc6 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 20 Aug 2022 21:22:20 +0200 Subject: [PATCH] Appease the robot dog --- app/controllers/moderation/reports_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/moderation/reports_controller.rb b/app/controllers/moderation/reports_controller.rb index 87dc2440..75ba4693 100644 --- a/app/controllers/moderation/reports_controller.rb +++ b/app/controllers/moderation/reports_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Moderation::ReportsController < ApplicationController before_action :authenticate_user! @@ -16,9 +18,9 @@ class Moderation::ReportsController < ApplicationController private def list_reports(type:, last_id:, size: nil) - cursor_params = { last_id: last_id, size: size }.compact + cursor_params = { last_id:, size: }.compact - if type == 'all' + if type == "all" Report.cursored_reports(**cursor_params) else Report.cursored_reports_of_type(type, **cursor_params)