Skip to content

Commit

Permalink
remove unneeded String() calls (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven Harrison authored Sep 11, 2023
1 parent fc73453 commit 1bf3971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checker/component_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func (c ComponentChange) PrettyErrorText(l Localizer) string {
}

func (c ComponentChange) Error() string {
return fmt.Sprintf("%s, in components %s [%s]. %s", c.Level.String(), c.Text, c.Id, c.Comment)
return fmt.Sprintf("%s, in components %s [%s]. %s", c.Level, c.Text, c.Id, c.Comment)
}
2 changes: 1 addition & 1 deletion checker/security_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func (c SecurityChange) PrettyErrorText(l Localizer) string {
}

func (c SecurityChange) Error() string {
return fmt.Sprintf("%s, in security %s [%s]. %s", c.Level.String(), c.Text, c.Id, c.Comment)
return fmt.Sprintf("%s, in security %s [%s]. %s", c.Level, c.Text, c.Id, c.Comment)
}

0 comments on commit 1bf3971

Please sign in to comment.