Merge PR #1438: Tools: Add errcheck linter
This linter ensures that all errors are checked. This is disabled in the client directories, since its not needed on those writes
This commit is contained in:
committed by
Christopher Goes
parent
7f59aa259f
commit
ac3adff1e8
+5
-1
@@ -233,7 +233,11 @@ func (m Linear) Flush(ptr interface{}, fn func() bool) {
|
||||
|
||||
var i uint64
|
||||
for i = top; i < length; i++ {
|
||||
m.Get(i, ptr)
|
||||
err := m.Get(i, ptr)
|
||||
if err != nil {
|
||||
// TODO: Handle with #870
|
||||
panic(err)
|
||||
}
|
||||
m.Delete(i)
|
||||
if fn() {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user