mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -20,7 +20,7 @@ class StepsController < ApplicationController
|
||||
else
|
||||
errors = []
|
||||
updater.errors.messages.each do |field, msg|
|
||||
errors << {field: field, description: msg.join }
|
||||
errors << { field: field, description: msg.join }
|
||||
end
|
||||
render json: { errors: errors }, status: 422
|
||||
end
|
||||
|
Reference in New Issue
Block a user