Fix Lint/RedundantSafeNavigation cop (#28172)

This commit is contained in:
Matt Jankowski
2023-12-01 10:52:56 -05:00
committed by GitHub
parent a98fccf84e
commit d83d01eb1e
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ class Api::V1::AccountsController < Api::BaseController
end
def mute
MuteService.new.call(current_user.account, @account, notifications: truthy_param?(:notifications), duration: (params[:duration]&.to_i || 0))
MuteService.new.call(current_user.account, @account, notifications: truthy_param?(:notifications), duration: params[:duration].to_i)
render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships
end