File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ module.exports = function run(args) {
139
139
await new Promise ( resolve => setTimeout ( resolve , 5000 ) ) ;
140
140
141
141
// 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 ) {
143
143
await downloadBuildArtifacts ( bsConfig , data . build_id , args ) ;
144
144
}
145
145
@@ -149,8 +149,8 @@ module.exports = function run(args) {
149
149
utils . handleSyncExit ( exitCode , data . dashboard_url ) ;
150
150
} ) ;
151
151
} ) ;
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 ) ) ;
154
154
}
155
155
156
156
logger . info ( message ) ;
You can’t perform that action at this time.
0 commit comments