lnd: partially fix golint warnings
This commit is contained in:
1 parent
92dec2a902
commit
fd97a4bd19
38 files changed
+229
-233
No files matched your search
@@ -18,7 +18,7 @@ func bitsToIndex(bs ...uint64) (index, error) {
|
||||
" 64")
|
||||
}
|
||||
|
||||
var res uint64 = 0
|
||||
var res uint64
|
||||
for i, e := range bs {
|
||||
if e != 1 && e != 0 {
|
||||
return 0, errors.New("wrong element, should be '0' or" +
|
||||
|
||||
Reference in new issue
Block a user