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

Commit aef4a12b authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

base: remove extra checks



p and p.applicationInfo are always != null (they are checked previously), so below checks
are unnecessaries

Change-Id: I155506512fe8b307f12408bbf3066c07a3504506
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent d74d1b36
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2025,8 +2025,7 @@ public class PackageManagerService extends IPackageManager.Stub {
            if((ps == null) || (ps.pkg == null) || (ps.pkg.applicationInfo == null)) {
                return -1;
            }
            p = ps.pkg;
            return p != null ? UserHandle.getUid(userId, p.applicationInfo.uid) : -1;
            return UserHandle.getUid(userId, ps.pkg.applicationInfo.uid);
        }
    }