Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
app/workers/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