Skip to content

Commit 0568b17

Browse files
committed
remove dead code
1 parent 7a282c8 commit 0568b17

File tree

4 files changed

+1
-24
lines changed

4 files changed

+1
-24
lines changed

commands/utils/archive.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,6 @@ function archive_batch(lt_config, batch) {
243243
lt_config["run_settings"]["reporter_config_file"]
244244
),
245245
});
246-
} else {
247-
// case 1: reporter_config_file param is missing
248-
// case 2: reporter_config_file = ""
249-
// case 3: reporter_config_file = <non existing file>
250-
// this shouldn't reject, instead just show a warning
251-
252-
253-
// This warning is not required, since we are already checking for the existence of file while validate()
254-
// console.log(
255-
// "Warning!! Provided reporter config file not found. Please check the provided value of reporter_config_file in lambdatest-config.json"
256-
// );
257246
}
258247
}
259248

commands/utils/set_args.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,6 @@ function sync_args_from_cmd(args) {
224224

225225
// if reporter_config_file parameter, add it in lt config alongwith a warning on console
226226
if (!lt_config["run_settings"]["reporter_config_file"]) {
227-
228-
/* cypress 9 user
229-
case 1: new user (may or may not run init) ->
230-
case 2: old existing user (may or may not run init) ->
231-
*/
232-
233-
234227
console.log("Warning !! Value of reporter_config_file parameter missing. Proceeding with default reporter config");
235228
lt_config["run_settings"]["reporter_config_file"] = constants.LT_BASE_REPORTER_CONFIG_FILE_NAME;
236229
}

commands/utils/validate.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,7 @@ module.exports = validate_config = function (lt_config, validation_configs) {
224224
lt_config["run_settings"]["reporter_config_file"] &&
225225
lt_config["run_settings"]["reporter_config_file"] != ""
226226
) {
227-
// console.log("reporter_config_file present");
228227
if (!fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) {
229-
230-
231-
// case 1: cypress 9 user ->
232-
// case 2: cypress >=10 user -> simply show warning that user may not get command logs section
233228
console.log(
234229
"Warning!! Reporter Config File does not exist, Commands section on dashboard may not get generated. Use lambdatest-cypress init command to generate."
235230
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambdatest-cypress-cli",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
55
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
66
"author": "LambdaTest <keys@lambdatest.com>",

0 commit comments

Comments
 (0)