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

Commit 357eb2c2 authored by Kweku Adams's avatar Kweku Adams
Browse files

Remove unnecessary null check.

The StorageController is initialized in JobSchedulerService's
constructor and is never null, so the null check is unnecessary.

Bug: 141645789
Test: atest CtsJobSchedulerTestCases
Change-Id: I97d204cffc435cbe6c3146e7e7691ef8aaf63513
parent ce03ab0b
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -4297,14 +4297,13 @@ public class JobSchedulerService extends com.android.server.SystemService


    int getStorageSeq() {
    int getStorageSeq() {
        synchronized (mLock) {
        synchronized (mLock) {
            return mStorageController != null ? mStorageController.getTracker().getSeq() : -1;
            return mStorageController.getTracker().getSeq();
        }
        }
    }
    }


    boolean getStorageNotLow() {
    boolean getStorageNotLow() {
        synchronized (mLock) {
        synchronized (mLock) {
            return mStorageController != null
            return mStorageController.getTracker().isStorageNotLow();
                    ? mStorageController.getTracker().isStorageNotLow() : false;
        }
        }
    }
    }