X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/448c931a776c3e3f65ca2eab11da0c062d597818..98d137c3e945a09f76e85bd18238558c668fdca4:/compactor.go diff --git a/compactor.go b/compactor.go index 2b06288..64ff1fd 100644 --- a/compactor.go +++ b/compactor.go @@ -110,11 +110,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) { } if len(lines) == 0 { - if err != nil { - return "", fmt.Errorf("summarize node: %w", err) - } - - return "", nil + return "", fmt.Errorf("summarize node: %w", err) } return compactorShortest(lines), nil