Skip to content

Commit 80b5073

Browse files
[FIX] Linting
Disabled makezero linter
1 parent c7670be commit 80b5073

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ linters:
4141
- gci
4242
- gofmt
4343
- goimports
44+
- makezero
4445

4546
# disabled because of generics
4647
- rowserrcheck

dbase/conversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func prependSpaces(raw []byte, length int) []byte {
140140
}
141141

142142
func sanitizeString(raw []byte) []byte {
143-
return bytes.Replace(raw, []byte{0x00}, []byte{}, -1)
143+
return bytes.ReplaceAll(raw, []byte{0x00}, []byte{})
144144
}
145145

146146
// nthBit returns the nth bit of a byte slice

0 commit comments

Comments
 (0)