Skip to content

Commit 9c5a1fa

Browse files
authored
Fix linting issue (RooCodeInc#2107)
1 parent ffae0b9 commit 9c5a1fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webview-ui/src/utils/hooks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export const useShortcut = (shortcut: string, callback: any, options = { disable
5050

5151
if (Object.keys(modifierMap).includes(keyArray[0])) {
5252
const finalKey = keyArray.pop()
53-
if (!finalKey) return
53+
if (!finalKey) {
54+
return
55+
}
5456

5557
if (keyArray.every((k) => modifierMap[k]) && finalKey.toLowerCase() === event.key.toLowerCase()) {
5658
event.preventDefault()

0 commit comments

Comments
 (0)