Skip to content

Commit 24ad351

Browse files
Karan NagpalKaran Nagpal
authored andcommitted
fix failing unit tes
1 parent 3b16fa4 commit 24ad351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module.exports = function run(args) {
139139
await new Promise(resolve => setTimeout(resolve, 5000));
140140

141141
// download build artifacts
142-
if (!utils.isUndefined(bsConfig.run_settings.downloads) && bsConfig.run_settings.downloads.length) {
142+
if (bsConfig.run_settings.downloads && bsConfig.run_settings.downloads.length) {
143143
await downloadBuildArtifacts(bsConfig, data.build_id, args);
144144
}
145145

@@ -149,8 +149,8 @@ module.exports = function run(args) {
149149
utils.handleSyncExit(exitCode, data.dashboard_url);
150150
});
151151
});
152-
} else if(!utils.isUndefined(bsConfig.run_settings.downloads) && bsConfig.run_settings.downloads.length) {
153-
logger.info(Constants.userMessages.ASYNC_DOWNLOADS.replace('<build-id>', data.build_id));
152+
} else if (bsConfig.run_settings.downloads && bsConfig.run_settings.downloads.length) {
153+
logger.info(Constants.userMessages.ASYNC_DOWNLOADS.replace('<build-id>', data.build_id));
154154
}
155155

156156
logger.info(message);

0 commit comments

Comments
 (0)