mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +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,
|
getConfig: () => config.get(`plugins.${name}`) as unknown as Config,
|
||||||
setConfig: (newConfig) => {
|
setConfig: (newConfig) => {
|
||||||
config.setPartial(`plugins.${name}`, newConfig);
|
config.setPartial(`plugins.${name}`, newConfig);
|
||||||
|
|
||||||
return Promise.resolve();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
send: (event: string, ...args: unknown[]) => {
|
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,
|
getConfig: () => config.get(`plugins.${name}`) as unknown as Config,
|
||||||
setConfig: (newConfig) => {
|
setConfig: (newConfig) => {
|
||||||
config.setPartial(`plugins.${name}`, newConfig);
|
config.setPartial(`plugins.${name}`, newConfig);
|
||||||
|
|
||||||
return Promise.resolve();
|
|
||||||
},
|
},
|
||||||
window: win,
|
window: win,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user