Fix linter

This commit is contained in:
Manuel Rüger 2025-02-19 23:33:36 +01:00
parent 447a2ffe71
commit c2db7e9f32
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
run: run:
deadline: 10m timeout: 10m
issues: issues:
exclude-use-default: false exclude-use-default: false

View file

@ -111,7 +111,7 @@ func NewDelimiter(canOpen, canClose bool, length int, char byte, processor Delim
} }
// ScanDelimiter scans a delimiter by given DelimiterProcessor. // ScanDelimiter scans a delimiter by given DelimiterProcessor.
func ScanDelimiter(line []byte, before rune, min int, processor DelimiterProcessor) *Delimiter { func ScanDelimiter(line []byte, before rune, minimum int, processor DelimiterProcessor) *Delimiter {
i := 0 i := 0
c := line[i] c := line[i]
j := i j := i
@ -120,7 +120,7 @@ func ScanDelimiter(line []byte, before rune, min int, processor DelimiterProcess
} }
for ; j < len(line) && c == line[j]; j++ { for ; j < len(line) && c == line[j]; j++ {
} }
if (j - i) >= min { if (j - i) >= minimum {
after := rune(' ') after := rune(' ')
if j != len(line) { if j != len(line) {
after = util.ToRune(line, j) after = util.ToRune(line, j)