aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/gpg/gpgbin/sign.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/gpg/gpgbin/sign.go')
-rw-r--r--lib/crypto/gpg/gpgbin/sign.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/crypto/gpg/gpgbin/sign.go b/lib/crypto/gpg/gpgbin/sign.go
index 314c3fc3..163aedfd 100644
--- a/lib/crypto/gpg/gpgbin/sign.go
+++ b/lib/crypto/gpg/gpgbin/sign.go
@@ -17,14 +17,11 @@ func Sign(r io.Reader, from string) ([]byte, string, error) {
}
g := newGpg(r, args)
- err := g.cmd.Run()
- if err != nil {
- return nil, "", fmt.Errorf("failed to run signing: %w", err)
- }
+ _ = g.cmd.Run()
outRdr := bytes.NewReader(g.stdout.Bytes())
var md models.MessageDetails
- err = parse(outRdr, &md)
+ err := parse(outRdr, &md)
if err != nil {
return nil, "", fmt.Errorf("failed to parse messagedetails: %w", err)
}