mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
golangci-lint 1.49 and related fixes (#1736)
This commit is contained in:
parent
faf3670e7f
commit
414282a2c9
42 changed files with 140 additions and 158 deletions
|
@ -2,7 +2,7 @@ package parser
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/crowdsecurity/crowdsec/pkg/csconfig"
|
||||
|
@ -31,7 +31,7 @@ type Parsers struct {
|
|||
func Init(c map[string]interface{}) (*UnixParserCtx, error) {
|
||||
r := UnixParserCtx{}
|
||||
r.Grok = grokky.NewBase()
|
||||
files, err := ioutil.ReadDir(c["patterns"].(string))
|
||||
files, err := os.ReadDir(c["patterns"].(string))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue