Fix rubocop nits

This commit is contained in:
Andreas Nedbal 2023-11-05 11:45:51 +01:00 committed by Andreas Nedbal
parent 9ce68bffb2
commit 8ddfcef259
1 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@ class ReactionsController < ApplicationController
def create
params.require :id
target = target_class.find_by!(id: params[:id])
target = target_class.find(params[:id])
UseCase::Reaction::Create.call(
source_user: current_user,
target:
target:,
)
target.reload
@ -40,11 +40,11 @@ class ReactionsController < ApplicationController
def destroy
params.require :id
target = target_class.find_by!(id: params[:id])
target = target_class.find(params[:id])
UseCase::Reaction::Destroy.call(
source_user: current_user,
target:
target:,
)
target.reload