We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9348ca commit 27e570eCopy full SHA for 27e570e
main.go
@@ -278,11 +278,8 @@ func loop() {
278
}
279
280
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")
+ if signatureKey == nil || len(*signatureKey) == 0 {
+ log.Panicf("signature public key should be set")
286
287
signaturePubKey, err := utilities.ParseRsaPublicKey([]byte(*signatureKey))
288
if err != nil {
0 commit comments