Skip to content

Commit 4d36f70

Browse files
committed
fix: 解决 CodeRabbit Code Review 提出的逻辑反转与缺省依赖问题 (PR #524)
1 parent 89a7e38 commit 4d36f70

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ psutil
66
pycryptodome
77
requests
88
plugin_jm_server
9-
zhconv
9+
zhconv
10+
img2pdf

src/jmcomic/jm_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def construct(cls, origdic: Dict, cover_default=True) -> 'JmOption':
298298

299299
# log
300300
log = dic.pop('log', True)
301-
if not log:
301+
if log is False:
302302
disable_jm_log()
303303

304304
# version

src/jmcomic/jm_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def execute_deletion(self, paths: List[str]):
6868
删除文件和文件夹
6969
:param paths: 路径列表
7070
"""
71-
if self.delete_original_file:
71+
if not self.delete_original_file:
7272
return
7373

7474
for p in paths:

0 commit comments

Comments
 (0)