Skip to content

Commit ef5df3b

Browse files
committed
reformat code
1 parent 4f2c6f4 commit ef5df3b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/jwt-cpp/jwt.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -1591,9 +1591,7 @@ namespace jwt {
15911591
*/
15921592
ecdsa(helper::evp_pkey_handle key_pair, const EVP_MD* (*md)(), std::string name, size_t siglen)
15931593
: pkey(std::move(key_pair)), md(md), alg_name(std::move(name)), signature_length(siglen) {
1594-
if (!pkey) {
1595-
throw error::ecdsa_exception(error::ecdsa_error::no_key_provided);
1596-
}
1594+
if (!pkey) { throw error::ecdsa_exception(error::ecdsa_error::no_key_provided); }
15971595
size_t keysize = EVP_PKEY_bits(pkey.get());
15981596
if (keysize != signature_length * 4 && (signature_length != 132 || keysize != 521))
15991597
throw error::ecdsa_exception(error::ecdsa_error::invalid_key_size);

0 commit comments

Comments
 (0)