mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #3968 from thaiphan/master
Stop packagePath variable from being undefined
This commit is contained in:
commit
0a96351274
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue