Skip to content

Commit

Permalink
fix: avoid ineffectual assign caught by the CI linter
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Aug 15, 2021
1 parent e840c23 commit 13f2494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/assuan/assuan.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ func New(rw io.ReadWriter, log *zap.Logger, ks ...KeyService) *Assuan {
_, _ = io.WriteString(rw, "ERR 1 couldn't match keygrip\n")
return fmt.Errorf("couldn't match keygrip: %v", err)
}
readKeyData, err := readKeyData(signer.Public())
var data string
data, err = readKeyData(signer.Public())
if err != nil {
_, _ = io.WriteString(rw, "ERR 1 couldn't get key data\n")
return fmt.Errorf("couldn't get key data: %v", err)
}
_, err = io.WriteString(rw, readKeyData)
_, err = io.WriteString(rw, data)
case setkeydesc:
// ignore this event since we don't currently use the client's
// description in the prompt
Expand Down

0 comments on commit 13f2494

Please sign in to comment.