| Index: net/websockets/websocket_job.cc
|
| diff --git a/net/websockets/websocket_job.cc b/net/websockets/websocket_job.cc
|
| index 44c944db39ff3fad6a1ef2c1df87923cedcfefc7..83795231a9453d90f943d77a84186eab0638d4f8 100644
|
| --- a/net/websockets/websocket_job.cc
|
| +++ b/net/websockets/websocket_job.cc
|
| @@ -234,7 +234,7 @@ void WebSocketJob::OnReceivedData(
|
| receive_frame_handler_->GetCurrentBufferSize());
|
| receive_frame_handler_->ReleaseCurrentBuffer();
|
| }
|
| - if (delegate_ && received_data.size() > 0)
|
| + if (delegate_ && !received_data.empty())
|
| delegate_->OnReceivedData(
|
| socket, received_data.data(), received_data.size());
|
| }
|
|
|