config: minor.

This commit is contained in:
Christopher Jeffrey 2017-03-14 17:40:25 -07:00
parent 32ea933b77
commit 010267e78e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -556,6 +556,9 @@ Config.prototype.getFile = function getFile(file) {
*/
Config.prototype.ensure = function ensure() {
if (fs.unsupported)
return Promise.resolve();
return fs.mkdirp(this.prefix);
};