瀏覽代碼

pkg/plugins/plugins.go: remove ineffective break statement.

See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
pkg/plugins/plugins.go:124:4:warning: ineffective break statement. Did you mean to break out of the outer loop? (SA4011) (megacheck)
Mario Trangoni 7 年之前
父節點
當前提交
abb6b135a3
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      pkg/plugins/plugins.go

+ 0 - 1
pkg/plugins/plugins.go

@@ -121,7 +121,6 @@ func (pm *PluginManager) Run(ctx context.Context) error {
 			pm.checkForUpdates()
 			pm.checkForUpdates()
 		case <-ctx.Done():
 		case <-ctx.Done():
 			run = false
 			run = false
-			break
 		}
 		}
 	}
 	}