Merge pull request #3968 from thaiphan/master

Stop packagePath variable from being undefined
This commit is contained in:
Hannah Wolfe 2014-09-06 16:35:45 +01:00
commit 0a96351274

View File

@ -33,9 +33,11 @@ AppPermissions.prototype.read = function () {
};
AppPermissions.prototype.checkPackageContentsExists = function () {
var self = this;
// Mostly just broken out for stubbing in unit tests
return new Promise(function (resolve) {
fs.exists(this.packagePath, function (exists) {
fs.exists(self.packagePath, function (exists) {
resolve(exists);
});
});