fix: lint errors
This commit is contained in:
parent
9fbfc0ca82
commit
d727d6b68e
4 changed files with 8 additions and 12 deletions
|
|
@ -69,11 +69,7 @@ func getCachedThread(msg *tele.Message) ([]*tele.Message, error) {
|
|||
|
||||
threadR := []*tele.Message{msg}
|
||||
currentMsg := msg
|
||||
for {
|
||||
if currentMsg.ReplyTo == nil {
|
||||
break
|
||||
}
|
||||
|
||||
for currentMsg.ReplyTo != nil {
|
||||
parentMsg, err := getCachedMessage(currentMsg.ReplyTo)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue