From c17b4154ec6068d40fa26a0bfba2ca3e804f9316 Mon Sep 17 00:00:00 2001 From: nyao <56715563+s-index@users.noreply.github.com> Date: Thu, 12 Dec 2019 09:29:12 +0900 Subject: [PATCH] fix(config): fix double checking ResultsDir Path (#927) --- config/config.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/config/config.go b/config/config.go index cc5ffd10..92629210 100644 --- a/config/config.go +++ b/config/config.go @@ -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")) }