Fixing minor go vet issue

This commit is contained in:
Chris Sexton 2013-08-25 23:44:30 -04:00
parent f655366930
commit ff661b1d27
1 changed files with 4 additions and 4 deletions

View File

@ -88,13 +88,13 @@ func (p *TwitterPlugin) Message(message bot.Message) bool {
func (p *TwitterPlugin) LoadData() { func (p *TwitterPlugin) LoadData() {
// This bot has no data to load // This bot has no data to load
p.Client = twitter.New(&oauth.Credentials{ p.Client = twitter.New(&oauth.Credentials{
p.Bot.Config.TwitterConsumerKey, Token: p.Bot.Config.TwitterConsumerKey,
p.Bot.Config.TwitterConsumerSecret, Secret: p.Bot.Config.TwitterConsumerSecret,
}) })
p.Client.SetAuth(&oauth.Credentials{ p.Client.SetAuth(&oauth.Credentials{
p.Bot.Config.TwitterUserKey, Token: p.Bot.Config.TwitterUserKey,
p.Bot.Config.TwitterUserSecret, Secret: p.Bot.Config.TwitterUserSecret,
}) })
_, err := p.Client.VerifyCredentials(nil) _, err := p.Client.VerifyCredentials(nil)