Skip to content

Commit 1b531b7

Browse files
comment resolved
1 parent 88de673 commit 1b531b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

commands/utils/validate.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ module.exports = validate_config = function (lt_config, validation_configs) {
126126
// validate cypress.json only in case of cypress<10
127127
if (
128128
semverCompare(cypress_version, "10.0.0") == -1 &&
129-
lt_config["run_settings"]["cypress_config_file"] &&
130-
lt_config["run_settings"]["cypress_config_file"] != ""
129+
lt_config["run_settings"]["cypress_config_file"]
131130
) {
132131
if (!fs.existsSync(lt_config["run_settings"]["cypress_config_file"])) {
133132
reject("Error!! Cypress Config File does not exist");
@@ -146,8 +145,7 @@ module.exports = validate_config = function (lt_config, validation_configs) {
146145
}
147146
} else if (
148147
semverCompare(cypress_version, "10.0.0") >= 0 &&
149-
lt_config["run_settings"]["cypress_config_file"] &&
150-
lt_config["run_settings"]["cypress_config_file"] != ""
148+
lt_config["run_settings"]["cypress_config_file"]
151149
) {
152150
reject(
153151
'Error!! --ccf flag and cypress_config_file is not cupported with cypress>=10,use \n --cy="--config-file <file path>"'

0 commit comments

Comments
 (0)