This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ function Reader (props, currentStat) {
21
21
props = { path : props }
22
22
}
23
23
24
- if ( ! props . path ) {
25
- self . error ( 'Must provide a path' , null , true )
26
- }
27
-
28
24
// polymorphism.
29
25
// call fstream.Reader(dir) to get a DirReader object, etc.
30
26
// Note that, unlike in the Writer case, ProxyReader is going
@@ -85,6 +81,10 @@ function Reader (props, currentStat) {
85
81
86
82
Abstract . call ( self )
87
83
84
+ if ( ! props . path ) {
85
+ self . error ( 'Must provide a path' , null , true )
86
+ }
87
+
88
88
self . readable = true
89
89
self . writable = false
90
90
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ function Writer (props, current) {
30
30
props = { path : props }
31
31
}
32
32
33
- if ( ! props . path ) self . error ( 'Must provide a path' , null , true )
34
-
35
33
// polymorphism.
36
34
// call fstream.Writer(dir) to get a DirWriter object, etc.
37
35
var type = getType ( props )
@@ -61,6 +59,8 @@ function Writer (props, current) {
61
59
62
60
Abstract . call ( self )
63
61
62
+ if ( ! props . path ) self . error ( 'Must provide a path' , null , true )
63
+
64
64
// props is what we want to set.
65
65
// set some convenience properties as well.
66
66
self . type = props . type
You can’t perform that action at this time.
0 commit comments