From 2eaa9fd683f2101a2cd83230cbd3058ccd25f86a Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 10 Oct 2017 22:16:46 -0700 Subject: [PATCH] htlcswitch: fix linter error --- htlcswitch/failure.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htlcswitch/failure.go b/htlcswitch/failure.go index 6a2d051ab..f066bb0ca 100644 --- a/htlcswitch/failure.go +++ b/htlcswitch/failure.go @@ -59,7 +59,7 @@ type SphinxErrorEncrypter struct { // proper MAC over the error. // // NOTE: Part of the ErrorEncrypter interface. -func (o *SphinxErrorEncrypter) EncryptFirstHop(failure lnwire.FailureMessage) (lnwire.OpaqueReason, error) { +func (s *SphinxErrorEncrypter) EncryptFirstHop(failure lnwire.FailureMessage) (lnwire.OpaqueReason, error) { var b bytes.Buffer if err := lnwire.EncodeFailure(&b, failure, 0); err != nil { return nil, err @@ -67,7 +67,7 @@ func (o *SphinxErrorEncrypter) EncryptFirstHop(failure lnwire.FailureMessage) (l // We pass a true as the first parameter to indicate that a MAC should // be added. - return o.EncryptError(true, b.Bytes()), nil + return s.EncryptError(true, b.Bytes()), nil } // IntermediateEncrypt wraps an already encrypted opaque reason error in an