From 9c86116e101094b4d6551d0ecfa7f1f1b5e5a47d Mon Sep 17 00:00:00 2001 From: liuyan1024 Date: Mon, 1 Jul 2024 20:39:11 +0800 Subject: [PATCH] Fix remove output file redundant suffix --- .../src/main/kotlin/cc/unitmesh/pick/option/InsPickerOption.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit-picker/src/main/kotlin/cc/unitmesh/pick/option/InsPickerOption.kt b/unit-picker/src/main/kotlin/cc/unitmesh/pick/option/InsPickerOption.kt index 93e5ef6..cf995b0 100644 --- a/unit-picker/src/main/kotlin/cc/unitmesh/pick/option/InsPickerOption.kt +++ b/unit-picker/src/main/kotlin/cc/unitmesh/pick/option/InsPickerOption.kt @@ -114,7 +114,7 @@ data class InsPickerOption( return baseDir + File.separator + repoFileName() + ".jsonl" } - fun repoFileName() = "${encodeFileName(url)}_${encodeFileName(branch)}_${language}.jsonl" + fun repoFileName() = "${encodeFileName(url)}_${encodeFileName(branch)}_${language}" /** * Encodes a given string to be used as a file name by replacing characters that are not allowed in file names.