Skip to content
Snippets Groups Projects
Commit 74d03a3b authored by aviau's avatar aviau Committed by gerrit2
Browse files

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: default avatarStepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
parent 5e7f53dc
Branches
No related tags found
No related merge requests found
......@@ -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
: (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment