From b685aac982154bc3195e4a3b5d9915c8df1998f7 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 16 Nov 2024 20:30:47 +0900 Subject: [PATCH] avoid repeating the same return type --- cli/encoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/encoder.go b/cli/encoder.go index 312c8400..e0556f97 100644 --- a/cli/encoder.go +++ b/cli/encoder.go @@ -256,7 +256,7 @@ func (e *encoder) writeByte(b byte, color []byte) { } } -func (e *encoder) write(bs []byte, color []byte) { +func (e *encoder) write(bs, color []byte) { if color == nil { e.w.Write(bs) } else {