fix: clean up empty blocks in file manager and credential editor

修复了 5 个空块:
- FileManagerGrid.tsx: 移除 1 个空 else 块和 1 个空 if 块
- CredentialEditor.tsx: 修复 1 个空 catch 块,移除 2 个空 if/else 块

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-05 21:05:36 +08:00
parent 3f9d0fad6b
commit dea1ca90b1
2 changed files with 2 additions and 8 deletions

View File

@@ -327,7 +327,6 @@ export function FileManagerGrid({
dragState.files[0].type === "file"
) {
onFileDiff?.(dragState.files[0], targetFile);
} else {
}
setDragState({ type: "none", files: [], counter: 0 });
@@ -458,8 +457,6 @@ export function FileManagerGrid({
type: "external",
counter: prev.counter + 1,
}));
if (e.dataTransfer.items && e.dataTransfer.items.length > 0) {
}
}
},
[dragState.type],