BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
71d884ad
Commit
71d884ad
authored
Jul 11, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't use assignment in if condition
parent
e63b693f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
invalid_gpg_signature_update_worker.rb
app/workers/invalid_gpg_signature_update_worker.rb
+6
-4
No files found.
app/workers/invalid_gpg_signature_update_worker.rb
View file @
71d884ad
...
@@ -3,10 +3,12 @@ class InvalidGpgSignatureUpdateWorker
...
@@ -3,10 +3,12 @@ class InvalidGpgSignatureUpdateWorker
include
DedicatedSidekiqQueue
include
DedicatedSidekiqQueue
def
perform
(
gpg_key_id
)
def
perform
(
gpg_key_id
)
if
gpg_key
=
GpgKey
.
find_by
(
id:
gpg_key_id
)
gpg_key
=
GpgKey
.
find_by
(
id:
gpg_key_id
)
Gitlab
::
Gpg
::
InvalidGpgSignatureUpdater
.
new
(
gpg_key
).
run
else
unless
gpg_key
Rails
.
logger
.
error
(
"InvalidGpgSignatureUpdateWorker: couldn't find gpg_key with ID=
#{
gpg_key_id
}
, skipping job"
)
return
Rails
.
logger
.
error
(
"InvalidGpgSignatureUpdateWorker: couldn't find gpg_key with ID=
#{
gpg_key_id
}
, skipping job"
)
end
end
Gitlab
::
Gpg
::
InvalidGpgSignatureUpdater
.
new
(
gpg_key
).
run
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment