Skip to content

Commit

Permalink
fix error checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jun 19, 2017
1 parent 3c8b8b7 commit 43f21ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions diff/parse_test.go
Expand Up @@ -35,8 +35,7 @@ func TestParseMultiFile(t *testing.T) {
}
dec := json.NewDecoder(wantfile)
var want []*FileDiff
err = dec.Decode(&want)
if err != nil {
if err := dec.Decode(&want); err != nil {
t.Fatal(err)
}
if !reflect.DeepEqual(difffiles, want) {
Expand Down

0 comments on commit 43f21ec

Please sign in to comment.