Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Sep 1, 2023
1 parent dbffcf7 commit 725d77f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion namespace-registry/client_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func NamespaceRegister(privateKeyPath string, namespaceRegistryEndpoint string,
}
log.Debugln("Constructed JWKS from loading public key:", string(jsonbuf))
}

privateKey, err := config.LoadPrivateKey(privateKeyPath)

Check failure on line 139 in namespace-registry/client_commands.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
if err != nil {
return errors.Wrap(err, "Failed to load private key")
Expand Down
1 change: 0 additions & 1 deletion namespace-registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ func keySignChallengeCommit(ctx *gin.Context, data *registrationData, action str
return errors.Wrap(err, "Failed to decode the client's signature")
}
clientVerified := verifySignature(clientPayload, clientSignature, (rawkey).(*ecdsa.PublicKey))

serverPayload, err := hex.DecodeString(data.ServerPayload)

Check failure on line 275 in namespace-registry/registry.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
if err != nil {
ctx.JSON(500, gin.H{"error": "Failed to decode the server's payload"})
Expand Down

0 comments on commit 725d77f

Please sign in to comment.