diff --git a/vendor/github.com/fatih/color/color.go b/vendor/github.com/fatih/color/color.go index e04d377..d1853e8 100644 --- a/vendor/github.com/fatih/color/color.go +++ b/vendor/github.com/fatih/color/color.go @@ -200,10 +200,7 @@ func (c *Color) Fprint(w io.Writer, a ...interface{}) (n int, err error) { // string. It returns the number of bytes written and any write error // encountered. This is the standard fmt.Print() method wrapped with the given // color. -func (c *Color) Print(a ...interface{}) (n int, err error) { - c.Set() - defer c.unset() - +func (*Color) Print(a ...interface{}) (n int, err error) { return fmt.Print(a...) // return fmt.Fprint(Output, a...) } @@ -222,10 +219,7 @@ func (c *Color) Fprintf(w io.Writer, format string, a ...interface{}) (n int, er // Printf formats according to a format specifier and writes to standard output. // It returns the number of bytes written and any write error encountered. // This is the standard fmt.Printf() method wrapped with the given color. -func (c *Color) Printf(format string, a ...interface{}) (n int, err error) { - c.Set() - defer c.unset() - +func (*Color) Printf(format string, a ...interface{}) (n int, err error) { return fmt.Printf(format, a...) // return fmt.Fprintf(Output, format, a...) } @@ -246,10 +240,7 @@ func (c *Color) Fprintln(w io.Writer, a ...interface{}) (n int, err error) { // appended. It returns the number of bytes written and any write error // encountered. This is the standard fmt.Print() method wrapped with the given // color. -func (c *Color) Println(a ...interface{}) (n int, err error) { - c.Set() - defer c.unset() - +func (*Color) Println(a ...interface{}) (n int, err error) { return fmt.Println(a...) // return fmt.Fprintln(Output, a...) }