fix(store): remove duplicated if-statement

This commit is contained in:
JellyBrick
2024-01-16 16:40:06 +09:00
parent f424ee5170
commit e5d0eced5d

View File

@ -32,12 +32,10 @@ const migrations = {
}; };
}; };
if (lastfmConfig) {
scrobblerConfig.enabled = lastfmConfig.enabled; scrobblerConfig.enabled = lastfmConfig.enabled;
scrobblerConfig.scrobblers.lastfm = lastfmConfig; scrobblerConfig.scrobblers.lastfm = lastfmConfig;
store.set('plugins.scrobbler', scrobblerConfig); store.set('plugins.scrobbler', scrobblerConfig);
} }
}
}, },
'>=3.0.0'(store: Conf<Record<string, unknown>>) { '>=3.0.0'(store: Conf<Record<string, unknown>>) {
const discordConfig = store.get('plugins.discord') as Record< const discordConfig = store.get('plugins.discord') as Record<