style(jump_to_note): remove dead case to improve readability

This commit is contained in:
Jakob Schlanstedt 2025-11-05 15:13:47 +01:00
parent cdd08d6971
commit 547cdff510

View File

@ -51,10 +51,6 @@ export default function JumpToNoteDialogComponent() {
} }
break; break;
// Mode.RecentNotes intentionally falls through to default:
// both represent the "normal open" behavior, where we decide between
// showing recent notes or restoring the last search depending on timing.
case Mode.RecentNotes:
default: default:
if (Date.now() - lastOpenedTs <= KEEP_LAST_SEARCH_FOR_X_SECONDS * 1000 && actualText.current) { if (Date.now() - lastOpenedTs <= KEEP_LAST_SEARCH_FOR_X_SECONDS * 1000 && actualText.current) {
newMode = Mode.LastSearch; newMode = Mode.LastSearch;