Skip to content

Commit c5e1a61

Browse files
committed
Fix up a couple of PR comments.
1 parent 39660bc commit c5e1a61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

litecli/completion_refresher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def refresh(
4141
self._restart_refresh.set()
4242
return [(None, None, None, "Auto-completion refresh restarted.")]
4343
else:
44-
if executor.dbname == ":memory":
44+
if executor.dbname == ":memory:":
4545
# if DB is memory, needed to use same connection
4646
# So can't use same connection with different thread
4747
self._bg_refresh(executor, callbacks, completer_options)

litecli/packages/prompt_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ConfirmBoolParamType(click.ParamType):
1313

1414
def convert(self, value: bool | str, param: click.Parameter | None, ctx: click.Context | None) -> bool:
1515
if isinstance(value, bool):
16-
return bool(value)
16+
return value
1717
value = value.lower()
1818
if value in ("yes", "y"):
1919
return True

0 commit comments

Comments
 (0)