From d48d585ed93aaeac7a660fe3ae018d5c07d8f112 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Fri, 8 Sep 2023 03:41:48 +0000 Subject: [PATCH] fix: astyle --- n_helpers.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/n_helpers.c b/n_helpers.c index 777739c7..65f6d788 100644 --- a/n_helpers.c +++ b/n_helpers.c @@ -367,12 +367,10 @@ const char * NoteBinaryReceive(uint8_t *buffer, uint32_t bufLen, if (!buffer) { err = ERRSTR("NULL buffer", c_bad); NOTE_C_LOG_ERROR(err); - } - else if (!dataLen) { + } else if (!dataLen) { err = ERRSTR("NULL dataLen not allowed", c_bad); NOTE_C_LOG_ERROR(err); - } - else { + } else { // Calculate the data length available on the Notecard if ((err = NoteBinaryDataDecodedLength(&decodedLen))) { decodedLen = 0;