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:
parent
85cfbe1e9c
commit
ef0e8aaea6
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user