Skip to content

Commit

Permalink
Fixes #21 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
autodidaddict authored Jan 5, 2024
1 parent 7793a64 commit efce62c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nex-cli/devrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ func uploadWorkload(nc *nats.Conn, filename string) (string, string, error) {
func readOrGenerateIssuer() (nkeys.KeyPair, error) {
filename := path.Join(nexDir, "issuer.nk")
bytes, err := os.ReadFile(filename)
if err != nil {
return nil, err
}
if len(bytes) == 0 {
if errors.Is(err, fs.ErrNotExist) {
return writeNewIssuer()
} else {
fmt.Printf("Reusing existing issuer account key: %s\n", filename)
Expand Down

0 comments on commit efce62c

Please sign in to comment.