[#148] linter: Add contextcheck linter

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-03-20 15:10:53 +03:00
parent 481a1ca6f3
commit 44b86bac5a
8 changed files with 10 additions and 1 deletions

View file

@ -43,6 +43,7 @@ func (exec *execCtx) processNode(ctx context.Context, info client.NodeInfo) bool
// has already been streamed to the requesting party
if obj != nil {
exec.collectedObject = obj
//nolint: contextcheck
exec.writeCollectedObject()
}
case errors.As(err, &errRemoved):