Maybe combine the two writes into one to reduce the duplication...  ``` boolean endOfStreamForBuffer = nextBuf == null ? endOfStream : false; super.writeData(ctx, streamId, buf, padding, endOfStreamForBuffer, newPromise); if (endOfStreamForBuffer) {     break; } ``` 