File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/server/v2/webDAVServer
src/server/v2/webDAVServer Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function autoLoad(callback) {
27
27
if ( ! options )
28
28
options = { } ;
29
29
if ( ! options . treeFilePath )
30
- if ( ! this . options . autoSave . treeFilePath )
30
+ if ( ! this . options . autoSave || ! this . options . autoSave . treeFilePath )
31
31
return callback ( new Error ( 'The "treeFilePath" of the "autoLoad" option is not found.' ) ) ;
32
32
else
33
33
options . treeFilePath = this . options . autoSave . treeFilePath ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export function autoLoad(callback : SimpleCallback)
34
34
if ( ! options )
35
35
options = { } as IAutoLoad ;
36
36
if ( ! options . treeFilePath )
37
- if ( ! this . options . autoSave . treeFilePath )
37
+ if ( ! this . options . autoSave || ! this . options . autoSave . treeFilePath )
38
38
return callback ( new Error ( 'The "treeFilePath" of the "autoLoad" option is not found.' ) ) ;
39
39
else
40
40
options . treeFilePath = this . options . autoSave . treeFilePath ;
You can’t perform that action at this time.
0 commit comments