Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Unified Diff: net/spdy/spdy_prefixed_buffer_reader.cc

Issue 1328563002: clang_tidy net/spdy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_pinnable_buffer_piece.h ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_prefixed_buffer_reader.cc
diff --git a/net/spdy/spdy_prefixed_buffer_reader.cc b/net/spdy/spdy_prefixed_buffer_reader.cc
index 8a4638c31405e62ac8946893f461d8be5a33e099..c47510de65e0ad0aa5848f5101f53971b538e1ce 100644
--- a/net/spdy/spdy_prefixed_buffer_reader.cc
+++ b/net/spdy/spdy_prefixed_buffer_reader.cc
@@ -23,8 +23,9 @@ size_t SpdyPrefixedBufferReader::Available() {
}
bool SpdyPrefixedBufferReader::ReadN(size_t count, char* out) {
- if (Available() < count)
+ if (Available() < count) {
return false;
+ }
if (prefix_length_ >= count) {
// Read is fully satisfied by the prefix.
@@ -49,8 +50,9 @@ bool SpdyPrefixedBufferReader::ReadN(size_t count, char* out) {
bool SpdyPrefixedBufferReader::ReadN(size_t count,
SpdyPinnableBufferPiece* out) {
- if (Available() < count)
+ if (Available() < count) {
return false;
+ }
out->storage_.reset();
out->length_ = count;
« no previous file with comments | « net/spdy/spdy_pinnable_buffer_piece.h ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698