From 302830ed6069198db2f3bfeadaf6219c6bd442cf Mon Sep 17 00:00:00 2001 From: Seebs Date: Tue, 9 Apr 2019 17:10:44 -0500 Subject: [PATCH] fix lint in btree_test --- roaring/btree_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roaring/btree_test.go b/roaring/btree_test.go index 67fd49e68..c12892f62 100644 --- a/roaring/btree_test.go +++ b/roaring/btree_test.go @@ -101,16 +101,16 @@ func (t *tree) dump() string { n = i + 1 } } - f.Format("%sX#%d(%p) n %d:%d {", pref, h, x, x.c, n) + _, _ = f.Format("%sX#%d(%p) n %d:%d {", pref, h, x, x.c, n) a := []interface{}{} for i, v := range x.x[:n] { a = append(a, v.ch) if i != 0 { - f.Format(" ") + _, _ = f.Format(" ") } - f.Format("(C#%d K %v)", handle(v.ch), v.k) + _, _ = f.Format("(C#%d K %v)", handle(v.ch), v.k) } - f.Format("}\n") + _, _ = f.Format("}\n") for _, p := range a { pagedump(p, pref+". ") } @@ -122,14 +122,14 @@ func (t *tree) dump() string { n = i + 1 } } - f.Format("%sD#%d(%p) P#%d N#%d n %d:%d {", pref, h, x, handle(x.p), handle(x.n), x.c, n) + _, _ = f.Format("%sD#%d(%p) P#%d N#%d n %d:%d {", pref, h, x, handle(x.p), handle(x.n), x.c, n) for i, d := range x.d[:n] { if i != 0 { - f.Format(" ") + _, _ = f.Format(" ") } - f.Format("%v:%v", d.k, d.v) + _, _ = f.Format("%v:%v", d.k, d.v) } - f.Format("}\n") + _, _ = f.Format("}\n") } }