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,11 +32,9 @@ const migrations = {
};
};
if (lastfmConfig) {
scrobblerConfig.enabled = lastfmConfig.enabled;
scrobblerConfig.scrobblers.lastfm = lastfmConfig;
store.set('plugins.scrobbler', scrobblerConfig);
}
scrobblerConfig.enabled = lastfmConfig.enabled;
scrobblerConfig.scrobblers.lastfm = lastfmConfig;
store.set('plugins.scrobbler', scrobblerConfig);
}
},
'>=3.0.0'(store: Conf<Record<string, unknown>>) {