Skip to content

Commit d1eb3ff

Browse files
committed
Make ruby lint happy
1 parent 87229cb commit d1eb3ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/api/deploy_keys.rb

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def find_by_deploy_key(project, key_id)
116116
result = deploy_keys_project.update_attributes(can_push: can_push,
117117
deploy_key_attributes: { id: params[:key_id],
118118
title: title })
119+
119120
if result
120121
present deploy_keys_project, with: Entities::DeployKeysProject
121122
else

spec/lib/gitlab/ci/config/entry/key_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
end
1111

1212
it 'reports errors with config value' do
13-
expect(entry.errors).to include 'key config cannot contain the "/" character'
13+
expect(entry.errors).to include 'key config cannot contain the "/" character'
1414
end
1515
end
1616

@@ -20,7 +20,7 @@
2020
end
2121

2222
it 'reports errors with config value' do
23-
expect(entry.errors).to include 'key config cannot be "." or ".."'
23+
expect(entry.errors).to include 'key config cannot be "." or ".."'
2424
end
2525
end
2626

0 commit comments

Comments
 (0)