refactor: split subcommand output lines more efficiently
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/importer/main.go → internal/importer/main.go
@@ -81,8 +81,8 @@ files, err := fetcher.FetchIfNeeded(ctx, sourceMeta) if err != nil { var exerr *exec.ExitError if errors.As(err, &exerr) { - lines := strings.Split(strings.TrimSpace(string(exerr.Stderr)), "\n") - for _, line := range lines { + lines := strings.SplitSeq(strings.TrimSpace(string(exerr.Stderr)), "\n") + for line := range lines { logger.Error( "importer fetch failed", "fetcher",