From e74a6ec6f66eba448d6513b8220c4f4cd5878f98 Mon Sep 17 00:00:00 2001 From: 0w0 Date: Mon, 4 Dec 2023 13:39:30 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=80=82=E9=85=8D=E5=99=A8=E5=89=8D=E7=9A=84=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E7=A1=AE=E8=AE=A4=E9=97=AE=E9=A2=98=20(#106)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nb_cli/config/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)