From 435b6a29f22a78f38d622f0183b9bad7432d6680 Mon Sep 17 00:00:00 2001 From: CAPEL Maxime <83071634+fortyup@users.noreply.github.com> Date: Wed, 6 Dec 2023 13:26:38 +0100 Subject: [PATCH] Unused depreciated function --- src/main/kotlin/main/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/main/Main.kt b/src/main/kotlin/main/Main.kt index 2e643dd..73c653d 100644 --- a/src/main/kotlin/main/Main.kt +++ b/src/main/kotlin/main/Main.kt @@ -172,7 +172,7 @@ fun selectFile(allowedExtensions: Set, onFileSelected: (String) -> Unit) val filePath = "$selectedDirectory$selectedFile" // Vérifier si l'extension est autorisée - val fileExtension = File(filePath).extension.toLowerCase() + val fileExtension = File(filePath).extension.lowercase() if (allowedExtensions.contains(fileExtension)) { println("Opening: $filePath") onFileSelected(filePath)