Skip to content

Commit 8a37704

Browse files
committed
fix(stream): remove redundant error handling in sendLink function
1 parent a8dceaf commit 8a37704

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/commands/stream.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ func sendLink(ctx *ext.Context, u *ext.Update) error {
6565
return dispatcher.EndGroups
6666
}
6767
messageID := update.Updates[0].(*tg.UpdateMessageID).ID
68-
if err != nil {
69-
utils.Logger.Sugar().Error(err)
70-
ctx.Reply(u, fmt.Sprintf("Error - %s", err.Error()), nil)
71-
return dispatcher.EndGroups
72-
}
7368
doc := update.Updates[1].(*tg.UpdateNewChannelMessage).Message.(*tg.Message).Media
7469
file, err := utils.FileFromMedia(doc)
7570
if err != nil {

0 commit comments

Comments
 (0)