You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/08/23 05:15:52 UTC

cordova-lib git commit: CB-13145: pass full options to plugman uninstall

Repository: cordova-lib
Updated Branches:
  refs/heads/CB-13145 [created] 182bb1b35


CB-13145: pass full options to plugman uninstall


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/182bb1b3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/182bb1b3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/182bb1b3

Branch: refs/heads/CB-13145
Commit: 182bb1b358dd7567f837ff694fa1996c3d6f7ca6
Parents: 812373d
Author: Steve Gill <st...@gmail.com>
Authored: Tue Aug 22 21:39:24 2017 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Tue Aug 22 22:15:19 2017 -0700

----------------------------------------------------------------------
 src/cordova/plugin/remove.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/182bb1b3/src/cordova/plugin/remove.js
----------------------------------------------------------------------
diff --git a/src/cordova/plugin/remove.js b/src/cordova/plugin/remove.js
index 6cbd930..7de0226 100644
--- a/src/cordova/plugin/remove.js
+++ b/src/cordova/plugin/remove.js
@@ -60,10 +60,8 @@ function remove (projectRoot, targets, hooksRunner, opts) {
                     return soFar.then(function () {
                         var platformRoot = path.join(projectRoot, 'platforms', platform);
                         events.emit('verbose', 'Calling plugman.uninstall on plugin "' + target + '" for platform "' + platform + '"');
-                        var options = {
-                            force: opts.force || false
-                        };
-                        return plugman.uninstall.uninstallPlatform(platform, platformRoot, target, pluginPath, options)
+                        opts.force = opts.force || false;
+                        return plugman.uninstall.uninstallPlatform(platform, platformRoot, target, pluginPath, opts)
                             .then(function (didPrepare) {
                                 // If platform does not returned anything we'll need
                                 // to trigger a prepare after all plugins installed


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org