Please rewrite this in a following way:

```javascript
  if (!ret)
    state.needDrain = true;
```