mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-26 09:34:32 +01:00
Complete Kotlin port
This commit is contained in:
@@ -74,10 +74,11 @@ class IndexFile {
|
||||
}
|
||||
|
||||
// TODO: throw some kind of exception?
|
||||
val name: String?
|
||||
val name: String
|
||||
get() {
|
||||
if (metafile) {
|
||||
return linkedFile?.name ?: linkedFile?.filename
|
||||
return linkedFile?.name ?: linkedFile?.filename ?:
|
||||
file?.run { Paths.get(path).fileName.toString() } ?: "Invalid file"
|
||||
}
|
||||
return file?.run { Paths.get(path).fileName.toString() } ?: "Invalid file"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user