Merge pull request #38 from tSU-RooT/fix-first-use-err

fix client is not set when first use
pull/40/head
mattn 2017-04-23 21:26:16 +09:00 committed by GitHub
commit e2f158f83c
1 changed files with 3 additions and 3 deletions

View File

@ -329,13 +329,13 @@ func run() int {
} }
client := mastodon.NewClient(config) client := mastodon.NewClient(config)
if config.AccessToken == "" {
return authenticate(client, config, file)
}
app.Metadata = map[string]interface{}{ app.Metadata = map[string]interface{}{
"client": client, "client": client,
"config": config, "config": config,
} }
if config.AccessToken == "" {
return authenticate(client, config, file)
}
return nil return nil
} }