Skip to content

Commit

Permalink
automatic err2 migration: phase 2 multilines
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Jun 1, 2022
1 parent f8fa4a4 commit 81bb364
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type Key struct {
}

func NewKey() Key {
pub, priv, err := ed25519.GenerateKey(nil)
try.To(err)
pub, priv := try.To2(ed25519.GenerateKey(nil))
return Key{PrivKey: priv, PubKey: pub}
}

Expand Down

0 comments on commit 81bb364

Please sign in to comment.