From c8810942020fe6dc44d39ce495d935590ee691a3 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 25 May 2020 09:55:47 -0700 Subject: [PATCH] Warning removal. --- node/Identity.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/node/Identity.cpp b/node/Identity.cpp index 7751edaa4..97e759fe2 100644 --- a/node/Identity.cpp +++ b/node/Identity.cpp @@ -425,10 +425,7 @@ bool Identity::fromString(const char *str) return false; m_computeHash(); - if ((m_type == P384) && (m_fp.address() != Address(m_fp.hash()))) - return false; - - return true; + return !((m_type == P384) && (m_fp.address() != Address(m_fp.hash()))); } int Identity::marshal(uint8_t data[ZT_IDENTITY_MARSHAL_SIZE_MAX], const bool includePrivate) const noexcept