Skip to content

Commit

Permalink
Remove new-line in log message
Browse files Browse the repository at this point in the history
The script fails itself!
  • Loading branch information
Sean-Der committed Nov 13, 2024
1 parent cfb7abb commit aa8e3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lint_no_trailing_newline_in_log_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {

for _, match := range logReg.FindAll(fileContents, -1) {
if !strings.Contains(string(match), "nolint") {
return fmt.Errorf("Log format strings should have trailing new-line: %s\n", match)
return fmt.Errorf("Log format strings should have trailing new-line: %s", match)
os.Exit(1)
}
}
Expand Down

0 comments on commit aa8e3b6

Please sign in to comment.