Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
morningvera committed Dec 25, 2019
1 parent cc9de7f commit fee7ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eris.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,5 @@ func printError(err error, s fmt.State, verb rune) {
format := NewDefaultFormat(withTrace)
uErr := Unpack(err)
str := uErr.ToString(format)
io.WriteString(s, str)
_, _ = io.WriteString(s, str)
}
6 changes: 3 additions & 3 deletions eris_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func TestErrorFormatting(t *testing.T) {
}

// todo: automate stack trace verification
fmt.Sprintf("error formatting results (%v):\n", desc)
fmt.Sprintf("%v\n", err)
fmt.Sprintf("%+v", err)
_ = fmt.Sprintf("error formatting results (%v):\n", desc)
_ = fmt.Sprintf("%v\n", err)
_ = fmt.Sprintf("%+v", err)
}
}

0 comments on commit fee7ade

Please sign in to comment.