Skip to content

Commit a7ba081

Browse files
committed
fix: fix return type
1 parent 6029559 commit a7ba081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shortcut_dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class ShortcutDialog {
151151

152152
private keysToHTML(keys: string[]) {
153153
const separator = navigator.platform.startsWith('Mac') ? '' : ' + ';
154-
if (!keys || !keys.length) return [];
154+
if (!keys || !keys.length) return '';
155155
return [
156156
`<span class="shortcut-combo">`,
157157
...keys.map((key, index) => {

0 commit comments

Comments
 (0)