aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repofiles/verification.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repofiles/verification.go')
-rw-r--r--modules/repofiles/verification.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/repofiles/verification.go b/modules/repofiles/verification.go
index be56f9b8b8..9fc084daaf 100644
--- a/modules/repofiles/verification.go
+++ b/modules/repofiles/verification.go
@@ -20,10 +20,8 @@ func GetPayloadCommitVerification(commit *git.Commit) *structs.PayloadCommitVeri
}
if verification.Reason != "" {
verification.Reason = commitVerification.Reason
- } else {
- if verification.Verified {
- verification.Reason = "unsigned"
- }
+ } else if verification.Verified {
+ verification.Reason = "unsigned"
}
return verification
}