fix client is not set when first use

pull/38/head
Haruki TSURUMOTO 2017-04-23 19:17:18 +09:00
parent 7a4a84f70f
commit a58d590523
1 changed files with 3 additions and 3 deletions

View File

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