Commit e5385e8f authored by Kirstie Cook's avatar Kirstie Cook

Update strings to use single quotes

parent 483c0a82
......@@ -21,20 +21,20 @@ module Metrics
private
def check_push_authorized(result)
return error(_(%q(You are not allowed to push into this branch. Create another branch or open a merge request.)), :forbidden) unless push_authorized?
return error(_('You are not allowed to push into this branch. Create another branch or open a merge request.'), :forbidden) unless push_authorized?
success(result)
end
def check_branch_name(result)
return error(_(%q(There was an error updating the dashboard, branch name is invalid.)), :bad_request) unless valid_branch_name?
return error(_(%q(There was an error updating the dashboard, branch named: %{branch} already exists.)) % { branch: params[:branch] }, :bad_request) unless new_or_default_branch?
return error(_('There was an error updating the dashboard, branch name is invalid.'), :bad_request) unless valid_branch_name?
return error(_('There was an error updating the dashboard, branch named: %{branch} already exists.') % { branch: params[:branch] }, :bad_request) unless new_or_default_branch?
success(result)
end
def check_file_type(result)
return error(_(%q(The file name should have a .yml extension)), :bad_request) unless target_file_type_valid?
return error(_('The file name should have a .yml extension'), :bad_request) unless target_file_type_valid?
success(result)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment