input/LocalOpen: make assert() more strict

This commit is contained in:
Max Kellermann 2018-01-20 19:15:51 +01:00
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;
} }