mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
remove unused Promise.resolve
This commit is contained in:
@ -148,8 +148,6 @@ async function loadPlugins(win: BrowserWindow) {
|
||||
getConfig: () => config.get(`plugins.${name}`) as unknown as Config,
|
||||
setConfig: (newConfig) => {
|
||||
config.setPartial(`plugins.${name}`, newConfig);
|
||||
|
||||
return Promise.resolve();
|
||||
},
|
||||
|
||||
send: (event: string, ...args: unknown[]) => {
|
||||
|
||||
@ -55,8 +55,6 @@ export const mainMenuTemplate = async (win: BrowserWindow): Promise<MenuTemplate
|
||||
getConfig: () => config.get(`plugins.${name}`) as unknown as Config,
|
||||
setConfig: (newConfig) => {
|
||||
config.setPartial(`plugins.${name}`, newConfig);
|
||||
|
||||
return Promise.resolve();
|
||||
},
|
||||
window: win,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user