diff --git a/src/main/kotlin/main/Glossary.kt b/src/main/kotlin/main/Glossary.kt index 84148af..01a67c8 100644 --- a/src/main/kotlin/main/Glossary.kt +++ b/src/main/kotlin/main/Glossary.kt @@ -183,8 +183,7 @@ fun glossariesPage( } private fun handleGlossaryDeletion(glossary: Glossary) { - val file = - File(glossaryPath + (appState.selectedProject?.name) + "/" + glossary.jsonFilePath) + val file = File("${glossaryPath}${appState.selectedProject?.name}/${glossary.jsonFilePath}") val deletionResult = file.delete() if (deletionResult) {