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
This commit is contained in:
Kweku Adams
2023-01-03 16:42:09 +00:00
parent ce03ab0bc3
commit 357eb2c2f8

View File

@@ -4297,14 +4297,13 @@ public class JobSchedulerService extends com.android.server.SystemService
int getStorageSeq() {
synchronized (mLock) {
return mStorageController != null ? mStorageController.getTracker().getSeq() : -1;
return mStorageController.getTracker().getSeq();
}
}
boolean getStorageNotLow() {
synchronized (mLock) {
return mStorageController != null
? mStorageController.getTracker().isStorageNotLow() : false;
return mStorageController.getTracker().isStorageNotLow();
}
}