From 74d03a3b4dfa46b2db6fe5ec30e8aaf77a9e01a1 Mon Sep 17 00:00:00 2001
From: aviau <alexandre@alexandreviau.net>
Date: Fri, 7 Oct 2016 16:25:45 -0400
Subject: [PATCH] uri.cpp: remove redundant Userinfo length check

The isHash variable already checks exactly this:
> bool isHash = d_ptr->m_Userinfo.size() == 40;

Change-Id: I7df6a2e2f605751e543909858e88a93a8c2158f5
Reviewed-by: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
---
 src/uri.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uri.cpp b/src/uri.cpp
index 16a26acb..c7f69b63 100644
--- a/src/uri.cpp
+++ b/src/uri.cpp
@@ -343,7 +343,7 @@ URI::ProtocolHint URI::protocolHint() const
 
       : (
          //Step two   : Check RING protocol, is has already been detected at this point
-         (d_ptr->m_HeaderType == URI::SchemeType::RING && isHash) || (isHash && d_ptr->m_Userinfo.size() == 40)
+         (d_ptr->m_HeaderType == URI::SchemeType::RING && isHash) || isHash
             ? URI::ProtocolHint::RING
 
       : (
-- 
GitLab