From 1ee847c21afc73b1cbdaa68e2043a5f0f949bc4d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 12 Jun 2014 22:48:40 +0900 Subject: [PATCH] nghttp: Code cleanup --- src/nghttp.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index f9f61498..d86ecd2c 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -902,17 +902,17 @@ struct HttpClient { } if(path_cache.count(uri)) { return false; - } else { - if(config.multiply == 1) { - path_cache.insert(uri); - } - - reqvec.push_back(util::make_unique(uri, u, data_prd, - data_length, - pri_spec, std::move(dep), - pri, level)); - return true; } + + if(config.multiply == 1) { + path_cache.insert(uri); + } + + reqvec.push_back(util::make_unique(uri, u, data_prd, + data_length, + pri_spec, std::move(dep), + pri, level)); + return true; } void record_handshake_time() {