diff --git a/nb_cli/config/parser.py b/nb_cli/config/parser.py index 7c00a87..dc85eb0 100644 --- a/nb_cli/config/parser.py +++ b/nb_cli/config/parser.py @@ -133,8 +133,7 @@ def remove_adapter(self, adapter: SimpleInfo) -> None: ), None, ) - is not None - ): + ) is not None: del adapters[index] self._write_data(data)