Fix ineffassign warnings

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-08-01 14:42:41 -07:00
parent 789330033a
commit 829845d268
5 changed files with 11 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ func (h Bar) Format(state fmt.State, r rune) {
n += copy(p[n:], []byte(reset))
if negative > 0 {
n += copy(p[n:len(p)-1], bytes.Repeat([]byte("-"), negative))
copy(p[n:len(p)-1], bytes.Repeat([]byte("-"), negative))
}
state.Write(p)