lnd: fix gosimple warnings
This commit is contained in:
1 parent
f5fd4138a0
commit
8fb54782e2
30 files changed
+73
-319
No files matched your search
+2
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user