Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74a895c5 authored by Tetiana Meronyk's avatar Tetiana Meronyk
Browse files

Refactor deleteWakeupFromUserStarts in UserWakeupStore

Bug: 314907186
Test: manual
Flag: EXEMPT trivial refactoring
Change-Id: I3485e90b7b2e6bd5afb752839da936c948dc0f5e
parent fc362ef1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -227,14 +227,14 @@ public class UserWakeupStore {
     * @return true if an entry is found and the list of wakeups changes.
     */
    private boolean deleteWakeupFromUserStarts(int userId) {
        int index;
        synchronized (mUserWakeupLock) {
            index = mUserStarts.indexOfKey(userId);
            final int index = mUserStarts.indexOfKey(userId);
            if (index >= 0) {
                mUserStarts.removeAt(index);
                return true;
            }
            return false;
        }
        return index >= 0;
    }

    /**