Skip to content

Commit 27e570e

Browse files
dido18lucarin91
andauthoredMar 26, 2025
Update main.go
Co-authored-by: Luca Rinaldi <[email protected]>
1 parent d9348ca commit 27e570e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎main.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,8 @@ func loop() {
278278
}
279279
}
280280

281-
if signatureKey == nil {
282-
log.Panicf("signature public key cannot be nil")
283-
}
284-
if len(*signatureKey) == 0 {
285-
log.Panicf("signature public key cannot be empty")
281+
if signatureKey == nil || len(*signatureKey) == 0 {
282+
log.Panicf("signature public key should be set")
286283
}
287284
signaturePubKey, err := utilities.ParseRsaPublicKey([]byte(*signatureKey))
288285
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.