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) {
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 ) ;
You can’t perform that action at this time.
0 commit comments