Bug 1861620 - CTTestUtils: simplify the code by removing some unnecessary else r=sylvestre DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D192113
This commit is contained in:
ChaseKnowlden 2023-11-01 08:02:54 +00:00
parent 5d9fe97a25
commit 69d067262c

View file

@ -468,9 +468,11 @@ const char kTestInclusionProofExtraData[] =
static uint8_t CharToByte(char c) {
if (c >= '0' && c <= '9') {
return c - '0';
} else if (c >= 'a' && c <= 'f') {
}
if (c >= 'a' && c <= 'f') {
return c - 'a' + 10;
} else if (c >= 'A' && c <= 'F') {
}
if (c >= 'A' && c <= 'F') {
return c - 'A' + 10;
}
abort();