Skip to content

Commit

Permalink
fix(config): fix double checking ResultsDir Path
Browse files Browse the repository at this point in the history
  • Loading branch information
s-index committed Dec 9, 2019
1 parent d6e74cc commit 2cdb7bf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions config/config.go
Expand Up @@ -177,13 +177,6 @@ func (c Config) ValidateOnConfigtest() bool {
func (c Config) ValidateOnScan() bool {
errs := c.checkSSHKeyExist()

if len(c.ResultsDir) != 0 {
if ok, _ := valid.IsFilePath(c.ResultsDir); !ok {
errs = append(errs, xerrors.Errorf(
"JSON base directory must be a *Absolute* file path. -results-dir: %s", c.ResultsDir))
}
}

if runtime.GOOS == "windows" && !c.SSHNative {
errs = append(errs, xerrors.New("-ssh-native-insecure is needed on windows"))
}
Expand Down

0 comments on commit 2cdb7bf

Please sign in to comment.