stream: remove duplicated expression

This to be removed expr also has been checked at line 144 :p
Sorry for the delay in review -- I think this should be `if (state.ended)` (vs `if (state.end)`)