1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 08:20:39 +00:00

add ineffassign check

This commit is contained in:
astaxie
2017-04-28 22:53:38 +08:00
parent 823dca76d5
commit e1f3353511
6 changed files with 9 additions and 12 deletions

View File

@ -360,7 +360,7 @@ func isParameterChar(b byte) bool {
}
func (cw *colorWriter) Write(p []byte) (int, error) {
r, nw, first, last := 0, 0, 0, 0
var r, nw, first, last int
if cw.mode != DiscardNonColorEscSeq {
cw.state = outsideCsiCode
cw.resetBuffer()