Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
w3irdrobot committed Feb 16, 2023
1 parent 7a939ac commit 101bb93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func checkSignature(publickey, signature string, contents []byte) (bool, error)

pubkey, err := schnorr.ParsePubKey(pk)
if err != nil {
return false, fmt.Errorf("event has invalid pubkey '%s': %w", pubkey, err)
return false, fmt.Errorf("event has invalid pubkey '%s': %w", publickey, err)
}

s, err := hex.DecodeString(signature)
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ func main() {
f.String("domain", "", "domain files are served from")
f.String("log-level", "info", "level of logs to output")
f.StringSlice("pubkey", []string{}, "pubkey to whitelist for uploading files")
f.Parse(os.Args[1:])
if err := f.Parse(os.Args[1:]); err != nil {
logrus.WithError(err).Fatal("error parsing flags")
}

config, err := getConfiguration(f)
if err != nil {
Expand Down

0 comments on commit 101bb93

Please sign in to comment.