Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed Nov 28, 2018
1 parent 2b340ac commit d409baa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions process.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,9 @@ func showButton() *tgbotapi.InlineKeyboardMarkup {

// processMessage asks Cortex about data submitted by a user
func (c *Client) processMessage(input *tgbotapi.Message) error {
var err error

msg := tgbotapi.NewMessage(input.Chat.ID, "Select analyzer to run. Choose <All> to run all of them.")
msg.ReplyToMessageID = input.MessageID

bmarkup := &tgbotapi.InlineKeyboardMarkup{}
var dt string

if input.Document != nil {
Expand All @@ -166,7 +163,7 @@ func (c *Client) processMessage(input *tgbotapi.Message) error {
dt = dataType(input.Text)
}

bmarkup, err = c.analyzersButtons(dt)
bmarkup, err := c.analyzersButtons(dt)
if err != nil {
return err
}
Expand Down

0 comments on commit d409baa

Please sign in to comment.