chore: исправить замечания golangci-lint
- wrap_test.go: проверять ошибки newWrapConn/wrapInto во всех тестах - server/wrap.go: nolint на type assertion bufPool (pool New всегда возвращает *[]byte) - captcha/slider.go: обосновать пустой импорт image/jpeg - namegen_test.go: применить закон Де Моргана к условию цикла
This commit is contained in:
1 parent
e2dd09a729
commit
1506dafe3c
4 files changed
+32
-11
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
"image/color"
|
||||
_ "image/jpeg"
|
||||
_ "image/jpeg" // register JPEG decoder for image.Decode
|
||||
"log"
|
||||
"math"
|
||||
mathrand "math/rand"
|
||||
|
||||
Reference in new issue
Block a user