File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -573,20 +573,14 @@ function updateFrameworkPlugins(opts, callback) {
573573 }
574574 var plugins = Object . keys ( json . dependencies ) ;
575575 async . eachSeries ( plugins , function ( plugin , pluginCallback ) {
576- var _done = function ( error ) {
576+ showSpinner ( `Updating Adapt framework plugin '${ plugin } '` ) ;
577+ app . bowermanager . installLatestCompatibleVersion ( plugin , error => {
577578 hideSpinner ( ) ;
578579 if ( error ) { // log, but don't fail (see #1890)
579580 warn ( `Failed to install ${ plugin } , ${ error } ` ) ;
580581 }
581582 pluginCallback ( ) ;
582- } ;
583- showSpinner ( `Updating Adapt framework plugin '${ plugin } '` ) ;
584-
585- if ( json . dependencies [ plugin ] === '*' ) {
586- app . bowermanager . installLatestCompatibleVersion ( plugin , _done ) ;
587- } else {
588- app . bowermanager . installPlugin ( plugin , json . dependencies [ plugin ] , _done ) ;
589- }
583+ } ) ;
590584 } , function ( error ) {
591585 hideSpinner ( ) ;
592586 if ( error ) {
You can’t perform that action at this time.
0 commit comments