refactor: remove redundant spread fallbacks
This commit is contained in:
1 parent
3eb48cbea7
commit
fcac2464e6
4 files changed
+4
-7
No files matched your search
@@ -620,7 +620,7 @@ async function removeChannelConfigWizard(
|
||||
);
|
||||
if (!confirmed) continue;
|
||||
|
||||
const nextChannels: Record<string, unknown> = { ...(next.channels ?? {}) };
|
||||
const nextChannels: Record<string, unknown> = { ...next.channels };
|
||||
delete nextChannels[channel];
|
||||
next = {
|
||||
...next,
|
||||
|
||||
Reference in new issue
Block a user