Bug 994651 - Fix 'TypeError: anonymous function does not always return a value osfile_shared_front.jsm:551'. r=Yoric

This commit is contained in:
Shashank Sabniveesu 2014-05-23 08:37:00 -04:00
parent 9026c8a3d8
commit 2a120141aa

View File

@ -550,7 +550,8 @@ AbstractFile.removeRecursive = function(path, options = {}) {
*/
AbstractFile.makeDir = function(path, options = {}) {
if (!options.from) {
return OS.File._makeDir(path, options);
OS.File._makeDir(path, options);
return;
}
if (!path.startsWith(options.from)) {
throw new Error("Incorrect use of option |from|: " + path + " is not a descendant of " + options.from);