]> git.giacomolli.uk - onechat/blobdiff - view_test.go
Check Go names and declarations with revive
[onechat] / view_test.go
index 56abdd6b81e12e72d0db7ad5a5e72e4b6d5f9537..f3d4e2a211afbb111ab2b5bd44b0cca5b222358d 100644 (file)
@@ -144,7 +144,7 @@ func TestRestoreViewRejectsAGap(t *testing.T) {
 // ViewBuiltTree is a tree with each node built, with 1 byte of text.
 type ViewBuiltTree struct{}
 
 // ViewBuiltTree is a tree with each node built, with 1 byte of text.
 type ViewBuiltTree struct{}
 
-func (ViewBuiltTree) Built(level, index int) (bool, error) {
+func (v ViewBuiltTree) Built(_, _ int) (bool, error) {
        return true, nil
 }
 
        return true, nil
 }