Skip to content

Commit 9f6886c

Browse files
committed
address lint
1 parent b8cdcf5 commit 9f6886c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

apps/roam/src/utils/notifySuggestiveModeAdoption.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ export const notifyBlockSuggestionAdded = async (
5858
return;
5959
}
6060

61-
let sidebarWindows: RoamSidebarWindow[] = [];
62-
try {
63-
sidebarWindows = window.roamAlphaAPI.ui.rightSidebar.getWindows() ?? [];
64-
} catch {}
61+
const sidebarWindows: RoamSidebarWindow[] =
62+
window.roamAlphaAPI.ui.rightSidebar.getWindows() ?? [];
6563

6664
const existingWindow = sidebarWindows.find(
6765
(w) =>

0 commit comments

Comments
 (0)