Lint (type inference): remove redundant type declarations (#2111)

This commit is contained in:
mmetc 2023-03-09 11:56:02 +01:00 committed by GitHub
parent 9faa49c7e8
commit e161507d08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 56 additions and 58 deletions

View file

@ -82,7 +82,7 @@ func (pw *PluginWatcher) Start(tomb *tomb.Tomb) {
func (pw *PluginWatcher) watchPluginTicker(pluginName string) {
var watchTime time.Duration
var watchCount int = -1
watchCount := -1
// Threshold can be set : by time, by count, or both
// if only time is set, honor it
// if only count is set, put timer to 1 second and just check size
@ -108,7 +108,7 @@ func (pw *PluginWatcher) watchPluginTicker(pluginName string) {
}
ticker := time.NewTicker(watchTime)
var lastSend time.Time = time.Now()
lastSend := time.Now()
for {
select {
case <-ticker.C: