mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
Remove redundant file check for capi_whitelists_path (#2728)
This commit is contained in:
parent
adba4e2a2f
commit
6960419a2e
2 changed files with 1 additions and 5 deletions
|
@ -356,10 +356,6 @@ func (s *LocalApiServerCfg) LoadCapiWhitelists() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
if _, err := os.Stat(s.CapiWhitelistsPath); os.IsNotExist(err) {
|
||||
return fmt.Errorf("capi whitelist file '%s' does not exist", s.CapiWhitelistsPath)
|
||||
}
|
||||
|
||||
fd, err := os.Open(s.CapiWhitelistsPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("while opening capi whitelist file: %s", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue