]> git.giacomolli.uk - onechat/blobdiff - compactor.go
Bind external events to permanent agent IDs
[onechat] / compactor.go
index 2b062882b18ae0e07dd363f3a8203d2302d28d64..64ff1fd60635611daded0d43aff2cd55e6d5754a 100644 (file)
@@ -110,11 +110,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) {
        }
 
        if len(lines) == 0 {
        }
 
        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
        }
 
        return compactorShortest(lines), nil