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