Clean code

This commit is contained in:
vvb2060
2021-01-23 18:10:26 -08:00
committed by topjohnwu
parent 06773235da
commit dbd13a2019
4 changed files with 2 additions and 13 deletions
@@ -50,13 +50,11 @@ class NetworkService(
fun ManagerJson.updateCopy() = copy(link = genCDNUrl(link), note = genCDNUrl(note))
fun MagiskJson.updateCopy() = copy(link = genCDNUrl(link), note = genCDNUrl(note))
fun StubJson.updateCopy() = copy(link = genCDNUrl(link))
fun UninstallerJson.updateCopy() = copy(link = genCDNUrl(link))
return info.copy(
app = info.app.updateCopy(),
magisk = info.magisk.updateCopy(),
stub = info.stub.updateCopy(),
uninstaller = info.uninstaller.updateCopy()
)
}