Skip to content

Commit 07a5102

Browse files
committed
🐛 Switched exists returns for correct results
1 parent 84971a0 commit 07a5102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KeyDB.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ bool KeyDB::keyExists(String key) {
140140
for (int i = 0; i < DB_KEY_MAX; i++) {
141141
// Return out of array if empty.
142142
if (this->keys[i] == "")
143-
return true;
143+
return false;
144144

145145
// Return found status if same key.
146146
if (this->keys[i] == key) {
147-
return false;
147+
return true;
148148
}
149149
}
150150
}

0 commit comments

Comments
 (0)