Skip to content

Commit

Permalink
Merge pull request #13 from toqueteos/patch-1
Browse files Browse the repository at this point in the history
simplify container.Format write calls
  • Loading branch information
Southclaws authored Nov 20, 2022
2 parents 4fd1bd2 + 0cd2a91 commit 05d5b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fault.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ func (f *container) Format(s fmt.State, verb rune) {

for _, v := range u.Errors {
if v.Message != "" {
s.Write([]byte(fmt.Sprintf("%s\n", v.Message)))
fmt.Fprintf(s, "%s\n", v.Message)
}
if v.Location != "" {
s.Write([]byte(fmt.Sprintf("\t%s\n", v.Location)))
fmt.Fprintf(s, "\t%s\n", v.Location)
}
}
}
Expand Down

0 comments on commit 05d5b11

Please sign in to comment.