1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

refactor: remove newlines from formatter print functions (#1137)

This commit is contained in:
Pete Davison
2023-04-27 01:20:06 +01:00
committed by GitHub
parent 1e8fc5011b
commit 8cfac5a25a
11 changed files with 58 additions and 58 deletions

View File

@ -64,7 +64,7 @@ type Logger struct {
// Outf prints stuff to STDOUT.
func (l *Logger) Outf(color Color, s string, args ...any) {
l.FOutf(l.Stdout, color, s+"\n", args...)
l.FOutf(l.Stdout, color, s, args...)
}
// FOutf prints stuff to the given writer.
@ -95,7 +95,7 @@ func (l *Logger) Errf(color Color, s string, args ...any) {
color = Default
}
print := color()
print(l.Stderr, s+"\n", args...)
print(l.Stderr, s, args...)
}
// VerboseErrf prints stuff to STDERR if verbose mode is enabled.