remove redundant sprintf

This commit is contained in:
Umputun
2021-04-26 23:59:39 -05:00
parent 52084e0510
commit abd628e1dc
+1 -2
View File
@@ -2,7 +2,6 @@ package notify
import (
"context"
"fmt"
log "github.com/go-pkgz/lgr"
"github.com/pkg/errors"
@@ -47,7 +46,7 @@ func (t *Slack) Send(ctx context.Context, req Request) error {
user += " → " + req.parent.User.Name
}
title := fmt.Sprintf("↦ original comment")
title := "↦ original comment"
if req.Comment.PostTitle != "" {
title = "↦ " + req.Comment.PostTitle
}