mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
Merge pull request #3968 from thaiphan/master
Stop packagePath variable from being undefined
This commit is contained in:
commit
0a96351274
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user