mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-13 17:09:59 +01:00
Remove unnecessary success condition in Ajax::ReportController
This commit is contained in:
parent
e3323dd1e3
commit
242e6ede84
1 changed files with 3 additions and 7 deletions
|
@ -20,12 +20,8 @@ class Ajax::ReportController < AjaxController
|
|||
reason: params[:reason],
|
||||
)
|
||||
|
||||
if result[:status] == 201
|
||||
@response[:status] = :okay
|
||||
@response[:message] = t(".success", parameter: params[:type].titleize)
|
||||
@response[:success] = true
|
||||
else
|
||||
@response[:message] = t(".error")
|
||||
end
|
||||
@response[:status] = :okay
|
||||
@response[:message] = t(".success", parameter: params[:type].titleize)
|
||||
@response[:success] = true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue