fix lint errors in current code

This commit is contained in:
Ulrich Schreiner 2018-06-30 22:34:04 +02:00
parent 07aeab1abb
commit 97e78127ad
No known key found for this signature in database
GPG Key ID: EA0F166C78CE7CD8
2 changed files with 5 additions and 5 deletions

8
bot.go
View File

@ -26,9 +26,9 @@ func NewBot(pref Settings) (*Bot, error) {
}
bot := &Bot{
Token: pref.Token,
Updates: make(chan Update, pref.Updates),
Poller: pref.Poller,
Token: pref.Token,
Updates: make(chan Update, pref.Updates),
Poller: pref.Poller,
handlers: make(map[string]interface{}),
stop: make(chan struct{}),
@ -847,7 +847,7 @@ func (b *Bot) StopLiveLocation(message Editable, options ...interface{}) (*Messa
params := map[string]string{
"chat_id": fmt.Sprintf("%d", chatID),
"message_id": fmt.Sprintf("%d", messageID),
"message_id": messageID,
}
sendOpts := extractOptions(options)

View File

@ -205,5 +205,5 @@ func processButtons(keys [][]InlineButton) {
func embedRights(p map[string]string, prv Rights) {
jsonRepr, _ := json.Marshal(prv)
json.Unmarshal(jsonRepr, p)
json.Unmarshal(jsonRepr, &p)
}