Skip to content

Commit

Permalink
index: fix warning with use of %s in Fatal
Browse files Browse the repository at this point in the history
Fatal doesn't allow use of formatting directive like %s. Instead, Fatalf
should be used when we need formatting directives.
  • Loading branch information
sahildua2305 committed Dec 17, 2017
1 parent effbe58 commit 204c7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestRead(t *testing.T) {
}

if r.Rev != rev {
t.Fatal("expected rev of %s, got %s", rev, r.Rev)
t.Fatalf("expected rev of %s, got %s", rev, r.Rev)
}

idx, err := r.Open()
Expand Down

0 comments on commit 204c7aa

Please sign in to comment.