From fc868aba4a0346a325612242ebd547fdf26e63f0 Mon Sep 17 00:00:00 2001 From: mzack Date: Sun, 26 Sep 2021 22:36:44 +0200 Subject: [PATCH] misc --- v2/internal/runner/processor.go | 4 ++-- v2/internal/runner/runner.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/v2/internal/runner/processor.go b/v2/internal/runner/processor.go index 9b7c6dd6..60264591 100644 --- a/v2/internal/runner/processor.go +++ b/v2/internal/runner/processor.go @@ -31,7 +31,7 @@ func (r *Runner) processTemplateWithList(template *templates.Template) bool { return nil } if r.options.Stream { - r.hostMapStream.Scan(processItem) + _ = r.hostMapStream.Scan(processItem) } else { r.hostMap.Scan(processItem) } @@ -62,7 +62,7 @@ func (r *Runner) processWorkflowWithList(template *templates.Template) bool { } if r.options.Stream { - r.hostMapStream.Scan(processItem) + _ = r.hostMapStream.Scan(processItem) } else { r.hostMap.Scan(processItem) } diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index 6c23c286..60a7ab6b 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -156,7 +156,7 @@ func New(options *types.Options) (*Runner, error) { // nolint:errcheck // ignoring error runner.hostMap.Set(url, nil) if options.Stream { - runner.hostMapStream.Set([]byte(url), nil) + _ = runner.hostMapStream.Set([]byte(url), nil) } } } @@ -179,7 +179,7 @@ func New(options *types.Options) (*Runner, error) { // nolint:errcheck // ignoring error runner.hostMap.Set(url, nil) if options.Stream { - runner.hostMapStream.Set([]byte(url), nil) + _ = runner.hostMapStream.Set([]byte(url), nil) } } } @@ -204,7 +204,7 @@ func New(options *types.Options) (*Runner, error) { // nolint:errcheck // ignoring error runner.hostMap.Set(url, nil) if options.Stream { - runner.hostMapStream.Set([]byte(url), nil) + _ = runner.hostMapStream.Set([]byte(url), nil) } } input.Close()