From 064bca1ddab04cbc5bea5eb274921ed9343659f8 Mon Sep 17 00:00:00 2001 From: glidea <740696441@qq.com> Date: Tue, 29 Apr 2025 08:22:03 +0800 Subject: [PATCH] fix lint --- pkg/notify/route/route.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/notify/route/route.go b/pkg/notify/route/route.go index b287f77..988d4ad 100644 --- a/pkg/notify/route/route.go +++ b/pkg/notify/route/route.go @@ -275,7 +275,12 @@ func (r *router) Route(ctx context.Context, result *rule.Result) (groups []*Grou return groups, nil } -func (r *router) generateSummary(ctx context.Context, prompt string, feeds []*Feed, sourceLabel string) (string, error) { +func (r *router) generateSummary( + ctx context.Context, + prompt string, + feeds []*Feed, + sourceLabel string, +) (string, error) { content := r.parseContentToSummary(feeds, sourceLabel) if content == "" { return "", nil @@ -296,6 +301,7 @@ func (r *router) generateSummary(ctx context.Context, prompt string, feeds []*Fe func (r *router) parseContentToSummary(feeds []*Feed, sourceLabel string) string { if sourceLabel == "" { b := runtimeutil.Must1(json.Marshal(feeds)) + return string(b) }