Skip to content

Commit

Permalink
Merge pull request #8 from privacybydesign/relax-file-permission-chec…
Browse files Browse the repository at this point in the history
…k-on-Ed25519KeyPath

fileInfo declared and not used
  • Loading branch information
sanderhollaar authored Dec 4, 2023
2 parents fb5f005 + 808d59a commit 7520baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ func loadXMSSMTKey() {
}

func loadEd25519Key() {
fileInfo, err := os.Stat(conf.Ed25519KeyPath)
_, err := os.Stat(conf.Ed25519KeyPath)
if os.IsNotExist(err) {
log.Printf("%s does not exist. Generating key ...", conf.Ed25519KeyPath)
ed25519Pk, ed25519Sk, err = ed25519.GenerateKey(nil)
Expand Down

0 comments on commit 7520baa

Please sign in to comment.