From 2c1f50ee6708fb29eae9dfee24cc44af7b8fb479 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Tue, 27 Jul 2021 14:43:02 +0200 Subject: [PATCH] Fix missing returns in userdb --- firmware/lib/userdb/UserDB.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/lib/userdb/UserDB.cpp b/firmware/lib/userdb/UserDB.cpp index f5d1a78..c5dd2f4 100644 --- a/firmware/lib/userdb/UserDB.cpp +++ b/firmware/lib/userdb/UserDB.cpp @@ -50,6 +50,7 @@ bool User::load(const String &stringId) numSessions_ = sessionsInFile; assert(expectedSize == bytesRead); + return true; } void User::init(const String &stringId, size_t sessionAllocateSize) @@ -160,6 +161,7 @@ User *UserStorage::addNewUser(const String &stringId) numUsers_++; assert(numUsers_ < MAX_USERS); users_[userIdx].init(stringId); + return &users_[userIdx]; } bool UserStorage::deleteUser(const String &stringId) @@ -173,6 +175,7 @@ bool UserStorage::deleteUser(const String &stringId) assert(numUsers_ > 0); if (userIdx != numUsers_ - 1) users_[userIdx] = users_[numUsers_ - 1]; + return true; } void UserStorage::fillFromFileSystem()