Fix nagging bool linter warnings (#1491)

This commit is contained in:
Ben Meadors
2022-06-04 07:28:58 -05:00
committed by GitHub
parent 3df5ec0b11
commit 4ab831c103
3 changed files with 4 additions and 12 deletions

View File

@@ -17,14 +17,6 @@ AdminModule *adminModule;
/// a change.
static const char *secretReserved = "sekrit";
/// If buf is !empty, change it to secret
static void hideSecret(char *buf)
{
if (*buf) {
strcpy(buf, secretReserved);
}
}
/// If buf is the reserved secret word, replace the buffer with currentVal
static void writeSecret(char *buf, const char *currentVal)
{