chore: use ext property instead of func

This commit is contained in:
2024-10-08 17:06:01 +08:00
parent 95a6abbfb3
commit 9ff4f03b24
3 files changed
+3 -5

No files matched your search

@@ -47,6 +47,4 @@ fun Int.formatToMinutes(): String {
return "$minutes:${if (remainingSeconds < 10) "0" else ""}$remainingSeconds"
}
fun String.proxy(): String {
return this.replace("https://", "https://proxy.rtast.cn/https/")
}
val String.proxy: String get() = this.replace("https://", "https://proxy.rtast.cn/https/")