mzack 2021-09-26 22:36:44 +02:00
parent 71e4396bd4
commit fc868aba4a
2 changed files with 5 additions and 5 deletions

View File

@ -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)
}

View File

@ -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()