lint: merge var declaration and init
This commit is contained in:
parent
6faa569a56
commit
c1254792a2
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue