aboutsummaryrefslogtreecommitdiff
path: root/src/Locations/LocationService.kt
diff options
context:
space:
mode:
authorSergey Mashkov <sergey.mashkov@jetbrains.com>2015-08-07 12:32:17 +0300
committerSergey Mashkov <sergey.mashkov@jetbrains.com>2015-08-07 12:32:17 +0300
commitbdd02a3112397b711f16d411869c0c610899aebf (patch)
treea4c1c1fd3bfe0dcff94dc95e5f874d6afc2b7f1c /src/Locations/LocationService.kt
parentd1ff5949b5807b57eab6010175b3c6f1e7c1945c (diff)
downloaddokka-bdd02a3112397b711f16d411869c0c610899aebf.tar.gz
dokka-bdd02a3112397b711f16d411869c0c610899aebf.tar.bz2
dokka-bdd02a3112397b711f16d411869c0c610899aebf.zip
~ Use new property access syntax
Diffstat (limited to 'src/Locations/LocationService.kt')
-rw-r--r--src/Locations/LocationService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Locations/LocationService.kt b/src/Locations/LocationService.kt
index 000b2c5e..4f587361 100644
--- a/src/Locations/LocationService.kt
+++ b/src/Locations/LocationService.kt
@@ -26,7 +26,7 @@ public data class FileLocation(val file: File): Location {
if (file.path.substringBeforeLast(".") == other.file.path.substringBeforeLast(".") && anchor == null) {
return "."
}
- val ownerFolder = file.getParentFile()!!
+ val ownerFolder = file.parentFile!!
val relativePath = ownerFolder.getRelativePath(other.file).path
return if (anchor == null) relativePath else relativePath + "#" + anchor
}