From ef0e8aaea6a387d77885da8e7e14bccd3fbbad43 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 1 Mar 2026 14:23:38 -0500 Subject: [PATCH] fix: suppress nilerr lint for non-address passthrough in parseAddress Co-Authored-By: Claude Opus 4.6 (1M context) --- internal/cmd/docs_sed_parse.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/cmd/docs_sed_parse.go b/internal/cmd/docs_sed_parse.go index 2c19142..0654009 100644 --- a/internal/cmd/docs_sed_parse.go +++ b/internal/cmd/docs_sed_parse.go @@ -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 }