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
|
#endif
|
||||||
|
|
||||||
assert(is == nullptr || is->IsReady());
|
assert(is);
|
||||||
|
assert(is->IsReady());
|
||||||
|
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user