Skip to content

Commit

Permalink
Make check more idiomatic
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalski committed Feb 27, 2018
1 parent 43e3ecb commit b1cdece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/http_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def write(self, chunk, *, drain=True, LIMIT=64*1024):
writer can't be used after write_eof() method being called.
write() return drain future.
"""
if self._on_chunk_sent:
if self._on_chunk_sent is not None:
await self._on_chunk_sent(chunk)

if self._compress is not None:
Expand Down

0 comments on commit b1cdece

Please sign in to comment.