From eccff03cf2ca2aa9251e1c1063eec390da34c94a Mon Sep 17 00:00:00 2001 From: knaito Date: Tue, 21 Aug 2018 12:11:10 +0900 Subject: [PATCH] remove unnecesarry promise, fix typo --- bin/templates/scripts/cordova/Api.js | 2 -- bin/templates/scripts/cordova/lib/BridgingHeader.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js index 14e5984ecd..9a1da6afff 100644 --- a/bin/templates/scripts/cordova/Api.js +++ b/bin/templates/scripts/cordova/Api.js @@ -252,7 +252,6 @@ Api.prototype.addPlugin = function (plugin, installOptions) { bridgingHeaderFile.write(); } } - return Q.resolve(); }) .then(function () { var frameworkTags = plugin.getFrameworks(self.platform); @@ -358,7 +357,6 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) { bridgingHeaderFile.write(); } } - return Q.resolve(); }) .then(function () { var frameworkTags = plugin.getFrameworks(self.platform); diff --git a/bin/templates/scripts/cordova/lib/BridgingHeader.js b/bin/templates/scripts/cordova/lib/BridgingHeader.js index d3cca7f339..e203835158 100644 --- a/bin/templates/scripts/cordova/lib/BridgingHeader.js +++ b/bin/templates/scripts/cordova/lib/BridgingHeader.js @@ -25,7 +25,7 @@ function BridgingHeader (bridgingHeaderPath) { this.path = bridgingHeaderPath; this.bridgingHeaders = null; if (!fs.existsSync(this.path)) { - throw new CordovaError('BridgingHeader.js is not found.'); + throw new CordovaError('BridgingHeader.h is not found.'); } this.bridgingHeaders = this.__parseForBridgingHeader(fs.readFileSync(this.path, 'utf8')); }