mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
DEV: update rubocop to version 0.77
We like to stay as close as possible to latest with rubocop cause the cops get better. This update required some code changes, specifically the default is to avoid explicit returns where implicit is done Also this renames a few rules
This commit is contained in:
@ -169,7 +169,7 @@ class ReviewablesController < ApplicationController
|
||||
render_json_error(reviewable.errors)
|
||||
end
|
||||
rescue Reviewable::UpdateConflict
|
||||
return render_json_error(I18n.t('reviewables.conflict'), status: 409)
|
||||
render_json_error(I18n.t('reviewables.conflict'), status: 409)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user