Archived
all: A few more interesting linter fixes (#5502)
A couple of minor bugs and simplifications
This commit is contained in:
1 parent
0b2cabbc31
commit
9fd270d78e
20 files changed
+55
-68
No files matched your search
+1
-4
@@ -418,10 +418,7 @@ func TestUpdateToInvalid(t *testing.T) {
|
||||
})
|
||||
|
||||
if !f.Iterate([]string{folder}, localHave[4].Blocks[0].Hash, func(folder, file string, index int32) bool {
|
||||
if file == localHave[4].Name {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return file == localHave[4].Name
|
||||
}) {
|
||||
t.Errorf("First block of un-invalidated file is missing from blockmap")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user