Commit 18265323 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Make ruby lint happy

parent 5af733b4
......@@ -24,10 +24,10 @@ class Projects::DeployKeysController < Projects::ApplicationController
def create
@key = DeployKeys::CreateService.new(current_user, create_params).execute
unless @key.valid?
flash[:alert] = @key.errors.full_messages.join(', ').html_safe
else
if @key.valid?
log_audit_event(@key.title, action: :create)
else
flash[:alert] = @key.errors.full_messages.join(', ').html_safe
end
redirect_to_repository_settings(@project)
......
......@@ -16,6 +16,7 @@ module Boards
milestone_id = params[:milestone_id]
return unless milestone_id
return if [::Milestone::None.id,
::Milestone::Upcoming.id,
::Milestone::Started.id].include?(milestone_id)
......
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