lnd: fix gosimple warnings

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-03-13 16:30:23 -07:00
1 parent f5fd4138a0
commit 8fb54782e2
30 files changed
+73 -319

No files matched your search

+2 -5
View File
@@ -197,11 +197,8 @@ func (f *FeatureVector) Encode(w io.Writer) error {
setFlag(data, position, flag)
}
if _, err := w.Write(data); err != nil {
return err
}
return nil
_, err := w.Write(data)
return err
}
// Compare checks that features are compatible and returns the features which