Refine code style

This commit is contained in:
Mygod
2020-08-18 05:25:32 +08:00
parent 35055bc074
commit 1029728f22
11 changed files with 14 additions and 20 deletions

View File

@@ -163,6 +163,7 @@ fun InvocationHandler.callSuper(interfaceClass: Class<*>, proxy: Any, method: Me
}
}
@Suppress("FunctionName")
fun if_nametoindex(ifname: String) = if (Build.VERSION.SDK_INT >= 26) {
Os.if_nametoindex(ifname)
} else try {