Skip to content

Commit

Permalink
allow empty public key env
Browse files Browse the repository at this point in the history
  • Loading branch information
djelusic committed Feb 24, 2022
1 parent 545276a commit 853b6a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/functions/authorizer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func handleRequest(ctx context.Context, req *events.APIGatewayCustomAuthorizerRe
}

func publicKey() (string, error) {
pk, ok := os.LookupEnv(domain.EnvPublicKey)
if ok {
pk := os.Getenv(domain.EnvPublicKey)
if pk != "" {
return pk, nil
}
awsClient, err := aws.New()
Expand Down

0 comments on commit 853b6a6

Please sign in to comment.