0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Stop packagePath variable from being undefined

This commit is contained in:
Thai Phan 2014-09-05 22:52:13 +10:00
parent f7b85524d8
commit 76f7412a75

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);
});
});