Skip to content

Commit

Permalink
Merge pull request #63 from naoyukis/delete_buf
Browse files Browse the repository at this point in the history
delete buf
  • Loading branch information
mattn committed Nov 23, 2021
2 parents a1c5ae5 + 699629e commit e1bb79c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions noncolorable.go
Expand Up @@ -42,7 +42,6 @@ loop:
continue
}

var buf bytes.Buffer
for {
c, err := er.ReadByte()
if err != nil {
Expand All @@ -51,7 +50,6 @@ loop:
if ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '@' {
break
}
buf.Write([]byte(string(c)))
}
}

Expand Down

0 comments on commit e1bb79c

Please sign in to comment.