Skip to content

Commit d8e8376

Browse files
committed
removing special config logic
1 parent 0236144 commit d8e8376

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/redux/src/selectors.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ export const getSettings = memoize(
6464
const customizedSettings = getWorkspace(store)?.data.settings ?? {};
6565
const defaultSettings = getDefaultWorkspaceSettings(store);
6666

67-
// Preserve the whole linter config object as it should not be merged field by field
68-
const defaultLinterConfig =
69-
defaultSettings?.notebookSettings?.python?.linter?.config;
70-
const customizedLinterConfig =
71-
customizedSettings?.notebookSettings?.python?.linter?.config;
72-
const newConfig = customizedLinterConfig ?? defaultLinterConfig;
73-
7467
// Deep merge settings but replace arrays instead of merging them
7568
const newSettings = mergeWith(
7669
{},
@@ -84,9 +77,6 @@ export const getSettings = memoize(
8477
}
8578
) as UndoPartial<State['workspace']['data']['settings']>;
8679

87-
if (newSettings.notebookSettings?.python?.linter) {
88-
newSettings.notebookSettings.python.linter.config = newConfig;
89-
}
9080
return newSettings;
9181
}
9282
);

0 commit comments

Comments
 (0)