multi: fix linter errors

This commit is contained in:
Johan T. Halseth committed 2019-08-07 10:53:10 +02:00
1 parent 3207c8a736
commit 21baa7bf18
5 files changed
+8 -11

No files matched your search

+1 -5
View File
@@ -1194,11 +1194,7 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
fail.Reason = circuit.ErrorEncrypter.EncryptMalformedError(
fail.Reason,
)
if err != nil {
err = fmt.Errorf("unable to obfuscate "+
"error: %v", err)
log.Error(err)
}
default:
// Otherwise, it's a forwarded error, so we'll perform a
// wrapper encryption as normal.