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:
@ -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.
|
||||
|
Reference in New Issue
Block a user