Make linter happy

This commit is contained in:
Joona Hoikkala 2023-09-12 15:04:44 +03:00
parent 67ef1700f6
commit 4940685bff
No known key found for this signature in database
GPG key ID: 1708DAE66E87A524
2 changed files with 2 additions and 2 deletions

View file

@ -227,7 +227,7 @@ func ConfigFromOptions(parseOpts *ConfigOptions, ctx context.Context, cancel con
errs.Add(fmt.Errorf("sniper mode only supports one input command"))
}
}
tmpEncoders := make(map[string]string, 0)
tmpEncoders := make(map[string]string)
for _, e := range parseOpts.Input.Encoders {
if strings.Contains(e, ":") {
key := strings.Split(e, ":")[0]

View file

@ -28,7 +28,7 @@ func NewInputProvider(conf *ffuf.Config) (ffuf.InputProvider, ffuf.Multierror) {
errs.Add(fmt.Errorf("Input mode (-mode) %s not recognized", conf.InputMode))
return &MainInputProvider{}, errs
}
mainip := MainInputProvider{Config: conf, msbIterator: 0, Encoders: make(map[string]*pencode.Chain, 0)}
mainip := MainInputProvider{Config: conf, msbIterator: 0, Encoders: make(map[string]*pencode.Chain)}
// Initialize the correct inputprovider
for _, v := range conf.InputProviders {
err := mainip.AddProvider(v)