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

Commit 7f9673cf authored by Aayush Gupta's avatar Aayush Gupta
Browse files

XAPK: XAPKInstallUtils: Use safe calls on nullable parentFile



- Compile-time warnings observed

w: /builds/e/apps/apps/app/src/main/java/foundation/e/apps/XAPK/XApkInstallUtils.kt: (144, 22): Unsafe use of a nullable receiver of type File?
w: /builds/e/apps/apps/app/src/main/java/foundation/e/apps/XAPK/XApkInstallUtils.kt: (145, 21): Unsafe use of a nullable receiver of type File?

Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent 2522506d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -141,8 +141,8 @@ object XApkInstallUtils {
            for (item in xApkManifest.expansionList!!) {
                val inputStream = getZipFileInputStream(zipFile, item.xFile, true)!!
                val obbFile = File(FsUtils.getStorageDir(), item.installPath)
                if (!obbFile.parentFile.exists()) {
                    obbFile.parentFile.mkdirs()
                if (obbFile.parentFile?.exists() == false) {
                    obbFile.parentFile?.mkdirs()
                }
                obbSuccess = FileWriterUtils.writeFileFromIS(
                    obbFile,