Skip to content

Commit 0c50765

Browse files
committed
Update color.go
1 parent 1d72351 commit 0c50765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

color/color.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ func (c *Color) PrintfFunc() func(format string, a ...interface{}) {
306306
// colorized with color.Fprintln().
307307
func (c *Color) FprintlnFunc() func(w io.Writer, a ...interface{}) {
308308
return func(w io.Writer, a ...interface{}) {
309-
c.Fprintln(w, a...)
309+
_, _ = c.Fprintln(w, a...)
310310
}
311311
}
312312

313313
// PrintlnFunc returns a new function that prints the passed arguments as
314314
// colorized with color.Println().
315315
func (c *Color) PrintlnFunc() func(a ...interface{}) {
316316
return func(a ...interface{}) {
317-
c.Println(a...)
317+
_, _ = c.Println(a...)
318318
}
319319
}
320320

0 commit comments

Comments
 (0)