aboutsummaryrefslogtreecommitdiff
path: root/src/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utilities')
-rw-r--r--src/Utilities/Path.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utilities/Path.kt b/src/Utilities/Path.kt
index 63240e98..24420ec7 100644
--- a/src/Utilities/Path.kt
+++ b/src/Utilities/Path.kt
@@ -18,4 +18,4 @@ fun File.getRelativePath(name: File): File {
}
}
-fun File.appendExtension(extension: String) = File(getPath() + "." + extension)
+fun File.appendExtension(extension: String) = if (extension.isEmpty()) this else File(getPath() + "." + extension)