fix(LocalRunnerClient): correct abnormal deleting condition in CommonMcp

This commit is contained in:
2026-01-13 23:13:52 +08:00
parent 837a4c92d1
commit 774e2b6cd5

View File

@@ -1352,7 +1352,7 @@ public class LocalRunnerClient extends RunnerClient {
protected LocalWatchServiceBuild.EventHandler buildDelete() { protected LocalWatchServiceBuild.EventHandler buildDelete() {
return (thisDir, context) -> { return (thisDir, context) -> {
val file = context.toFile(); val file = context.toFile();
if (file.isFile() && file.getName().endsWith(".json")) { if (!file.isFile() || !file.getName().endsWith(".json")) {
return; return;
} }