fix: suppress nilerr lint for non-address passthrough in parseAddress

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
daniel 2026-03-01 14:23:38 -05:00
parent 85cfbe1e9c
commit ef0e8aaea6

View File

@ -317,7 +317,10 @@ func parseAddress(raw string) (*sedAddress, string, error) {
i++
}
start, err := strconv.Atoi(raw[:i])
if err != nil || start < 1 {
if err != nil {
return nil, raw, nil //nolint:nilerr // not an address, pass through
}
if start < 1 {
return nil, raw, nil
}