File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -46,19 +46,12 @@ class Runner {
4646 run = run . then ( _ => config . artifacts ) ;
4747 }
4848
49- // Ignoring these two flags since this functionality is not exposed by the module.
49+ // Ignoring these two flags for coverage as this functionality is not exposed by the module.
5050 /* istanbul ignore next */
51- if ( opts . flags . saveArtifacts ) {
51+ if ( opts . flags . saveArtifacts || opts . flags . saveAssets ) {
5252 run = run . then ( artifacts => {
53- assetSaver . saveArtifacts ( artifacts ) ;
54- return artifacts ;
55- } ) ;
56- }
57-
58- /* istanbul ignore next */
59- if ( opts . flags . saveAssets ) {
60- run = run . then ( artifacts => {
61- assetSaver . saveAssets ( opts , artifacts ) ;
53+ opts . flags . saveArtifacts && assetSaver . saveArtifacts ( artifacts ) ;
54+ opts . flags . saveAssets && assetSaver . saveAssets ( opts , artifacts ) ;
6255 return artifacts ;
6356 } ) ;
6457 }
You can’t perform that action at this time.
0 commit comments