[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2023-01-02 11:15:30 +00:00
parent c433df0f29
commit 5d98de793f
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 3 additions and 3 deletions

View file

@ -76,12 +76,12 @@ open class Cda: ExtractorApi() {
return if (a.contains("/upstream")) "https://" + a.replace("/upstream", ".mp4/upstream") return if (a.contains("/upstream")) "https://" + a.replace("/upstream", ".mp4/upstream")
else "https://${a}.mp4" else "https://${a}.mp4"
} }
private fun getFile(a: String) = when { private fun getFile(a: String) = when {
a.startsWith("uggc") -> cdaUggc(a) a.startsWith("uggc") -> cdaUggc(a)
!a.startsWith("http") -> cdaDecrypt(a) !a.startsWith("http") -> cdaDecrypt(a)
else -> a else -> a
} }
data class VideoPlayerData( data class VideoPlayerData(
val file: String, val file: String,

View file

@ -362,7 +362,7 @@ class InAppUpdater {
fun isMiUi(): Boolean { fun isMiUi(): Boolean {
return !TextUtils.isEmpty(getSystemProperty("ro.miui.ui.version.name")) return !TextUtils.isEmpty(getSystemProperty("ro.miui.ui.version.name"))
} }
fun getSystemProperty(propName: String): String? { fun getSystemProperty(propName: String): String? {
var line: String? = null var line: String? = null
var input: BufferedReader? = null var input: BufferedReader? = null