Skip to content

Commit 699629e

Browse files
committed
delete buf
buf(bytes.Buffer) is actually unused.
1 parent a1c5ae5 commit 699629e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: noncolorable.go

-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ loop:
4242
continue
4343
}
4444

45-
var buf bytes.Buffer
4645
for {
4746
c, err := er.ReadByte()
4847
if err != nil {
@@ -51,7 +50,6 @@ loop:
5150
if ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '@' {
5251
break
5352
}
54-
buf.Write([]byte(string(c)))
5553
}
5654
}
5755

0 commit comments

Comments
 (0)