lint: merge var declaration and init

This commit is contained in:
Umputun 2018-12-05 02:17:42 -06:00
parent 6faa569a56
commit c1254792a2

View file

@ -42,8 +42,7 @@ func main() {
setupLog(opts.Dbg)
notifier := rss.New(context.Background(), opts.Feed, opts.Refresh)
var pub publisher.Interface
pub = publisher.Twitter{
var pub publisher.Interface = publisher.Twitter{
ConsumerKey: opts.ConsumerKey,
ConsumerSecret: opts.ConsumerSecret,
AccessToken: opts.AccessToken,