Skip to content

Commit

Permalink
remove unnecesarry promise, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
knaito-asial authored and erisu committed Jan 16, 2019
1 parent d78b190 commit eccff03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bin/templates/scripts/cordova/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ Api.prototype.addPlugin = function (plugin, installOptions) {
bridgingHeaderFile.write();
}
}
return Q.resolve();
})
.then(function () {
var frameworkTags = plugin.getFrameworks(self.platform);
Expand Down Expand Up @@ -358,7 +357,6 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) {
bridgingHeaderFile.write();
}
}
return Q.resolve();
})
.then(function () {
var frameworkTags = plugin.getFrameworks(self.platform);
Expand Down
2 changes: 1 addition & 1 deletion bin/templates/scripts/cordova/lib/BridgingHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down

0 comments on commit eccff03

Please sign in to comment.