Skip to content

Commit

Permalink
Simplify sprint line
Browse files Browse the repository at this point in the history
  • Loading branch information
mnotti committed Jul 6, 2023
1 parent ebb036f commit f10bbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func formatUnequalValues(expected, actual interface{}) (e string, a string) {
}
switch expected.(type) {
case time.Duration, uint, uint8, uint16, uint32, uint64:
return fmt.Sprintf("%v", expected), fmt.Sprintf("%v", actual)
return fmt.Sprint(expected), fmt.Sprint(actual)
}
return truncatingFormat(expected), truncatingFormat(actual)
}
Expand Down

0 comments on commit f10bbbe

Please sign in to comment.