Skip to content

Commit c714764

Browse files
committed
Remove needless void
1 parent ae4241a commit c714764

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function createMainWindow() {
8585
});
8686

8787
window.webContents.setWindowOpenHandler(({url}) => {
88-
void shell.openExternal(url);
88+
shell.openExternal(url);
8989
return {action: 'deny'};
9090
});
9191

@@ -102,7 +102,7 @@ app.on('ready', () => {
102102
tray.create(mainWindow);
103103

104104
mainWindow.webContents.on('dom-ready', () => {
105-
void mainWindow!.webContents.insertCSS(browserCss);
105+
mainWindow!.webContents.insertCSS(browserCss);
106106
mainWindow!.show();
107107
});
108108

@@ -111,7 +111,7 @@ app.on('ready', () => {
111111
});
112112

113113
const lastUrl = store.get('lastUrl');
114-
void mainWindow.loadURL(lastUrl);
114+
mainWindow.loadURL(lastUrl);
115115

116116
update.init();
117117
update.checkUpdate();

src/menu.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const historySubmenu: MenuItemConstructorOptions[] = [{
1717
accelerator: 'CommandOrControl+Shift+H',
1818
click(item, focusedWindow) {
1919
if (focusedWindow instanceof BrowserWindow) {
20-
void focusedWindow.loadURL(store.get('baseUrl'));
20+
focusedWindow.loadURL(store.get('baseUrl'));
2121
}
2222
},
2323
}, {
@@ -41,7 +41,7 @@ const historySubmenu: MenuItemConstructorOptions[] = [{
4141
const helpSubmenu: MenuItemConstructorOptions[] = [{
4242
label: `${appName} Website`,
4343
click() {
44-
void shell.openExternal('https://github.com/1000ch/whale');
44+
shell.openExternal('https://github.com/1000ch/whale');
4545
},
4646
}, {
4747
label: 'Report an Issue...',
@@ -53,7 +53,7 @@ ${app.getName()} ${app.getVersion()}
5353
Electron ${process.versions.electron}
5454
${process.platform} ${process.arch} ${os.release()}`;
5555

56-
void shell.openExternal(`https://github.com/1000ch/whale/issues/new?body=${encodeURIComponent(body)}`);
56+
shell.openExternal(`https://github.com/1000ch/whale/issues/new?body=${encodeURIComponent(body)}`);
5757
},
5858
}, {
5959
type: 'separator',
@@ -65,7 +65,7 @@ if (process.platform !== 'darwin') {
6565
helpSubmenu.push({
6666
role: 'about',
6767
click() {
68-
void dialog.showMessageBox({
68+
dialog.showMessageBox({
6969
title: `About ${appName}`,
7070
message: `${appName} ${app.getVersion()}`,
7171
detail: 'Created by Shogo Sensui',

src/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function init() {
77
}
88

99
function checkUpdate() {
10-
void autoUpdater.checkForUpdatesAndNotify();
10+
autoUpdater.checkForUpdatesAndNotify();
1111
}
1212

1313
const defaultObject = {init, checkUpdate};

0 commit comments

Comments
 (0)