mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 994651 - Fix 'TypeError: anonymous function does not always return a value osfile_shared_front.jsm:551'. r=Yoric
This commit is contained in:
parent
9026c8a3d8
commit
2a120141aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user