forked from mirrors/gecko-dev
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:
parent
5d9fe97a25
commit
69d067262c
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue