Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 11, 2023
1 parent 6c1f19c commit 9082461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runtime/compiler/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (e *TypeError) Root() Type {

func (e *TypeError) String() string {
if e == nil || e.error == nil {
return fmt.Sprintf("type error")
return "type error"
}
var estr, rstr string
if IsComplete(e.expected) {
Expand Down

0 comments on commit 9082461

Please sign in to comment.