From e4430037336b86f0aa7a08d23b67efcab662c829 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 27 Jan 2025 23:46:49 +0100 Subject: [PATCH] style --- client/src/util.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/src/util.c b/client/src/util.c index d89962698..29ed40eb2 100644 --- a/client/src/util.c +++ b/client/src/util.c @@ -191,13 +191,15 @@ int FillBuffer(uint8_t *data, size_t maxDataLength, size_t *dataLength, ...) { } bool CheckStringIsHEXValue(const char *value) { - for (size_t i = 0; i < strlen(value); i++) - if (!isxdigit(value[i])) - return false; - - if (strlen(value) % 2) + if (strlen(value) % 2) { return false; + } + for (size_t i = 0; i < strlen(value); i++) { + if (!isxdigit(value[i])) { + return false; + } + } return true; }