summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-22 18:10:33 +0300
committerValery Piashchynski <[email protected]>2021-07-22 18:10:33 +0300
commit2ceebd687fd17b6029ef3df0e979c39bb39abc7f (patch)
tree9f507e82163586d9e803cab91ed657ab2c81e3fb /plugins
parente9713a1d08a93e2be70c889c600ed89f54822b54 (diff)
Linters
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/jobs/rpc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jobs/rpc.go b/plugins/jobs/rpc.go
index 0d15fb0f..aeba499b 100644
--- a/plugins/jobs/rpc.go
+++ b/plugins/jobs/rpc.go
@@ -111,7 +111,7 @@ func (r *rpc) Declare(req *jobsv1beta.DeclareRequest, _ *jobsv1beta.Empty) error
func (r *rpc) Destroy(req *jobsv1beta.Pipelines, resp *jobsv1beta.Pipelines) error {
const op = errors.Op("rcp_declare_pipeline")
- var destroyed []string
+ var destroyed []string //nolint:prealloc
for i := 0; i < len(req.GetPipelines()); i++ {
err := r.p.Destroy(req.GetPipelines()[i])
if err != nil {