input/LocalOpen: make assert() more strict
This commit is contained in:
parent
1eb9300658
commit
36f7eaadef
|
@ -53,7 +53,8 @@ OpenLocalInputStream(Path path, Mutex &mutex, Cond &cond)
|
|||
}
|
||||
#endif
|
||||
|
||||
assert(is == nullptr || is->IsReady());
|
||||
assert(is);
|
||||
assert(is->IsReady());
|
||||
|
||||
return is;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue