We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84971a0 commit 07a5102Copy full SHA for 07a5102
1 file changed
src/KeyDB.cpp
@@ -140,11 +140,11 @@ bool KeyDB::keyExists(String key) {
140
for (int i = 0; i < DB_KEY_MAX; i++) {
141
// Return out of array if empty.
142
if (this->keys[i] == "")
143
- return true;
+ return false;
144
145
// Return found status if same key.
146
if (this->keys[i] == key) {
147
- return false;
+ return true;
148
}
149
150
0 commit comments