Skip to content

Commit 36e5d16

Browse files
committed
Corrected move config file tip condition
1 parent 0f21853 commit 36e5d16

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • remove-json-keys/src/remove_json_keys/lib
  • translate-messages/src/translate_messages/lib

remove-json-keys/src/remove_json_keys/lib/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def config_file(cli: sn) -> None: # for --init
4040
cli.default_file_config = url.get(jsd_url)
4141
data.file.write(str(target_path), cli.default_file_config)
4242
log.success(f'{cli.msgs.log_DEFAULT_CONFIG_CREATED_AT} {target_path}')
43-
if in_project_root : log.tip(f'{cli.msgs.tip_MOVE_CONFIG_TO_ROOT}.')
43+
if not in_project_root : log.tip(f'{cli.msgs.tip_MOVE_CONFIG_TO_ROOT}.')
4444

4545
def config_filepath(cli: sn) -> None: # for settings.load()
4646

translate-messages/src/translate_messages/lib/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def config_file(cli: sn) -> None: # for --init
4141
cli.default_file_config = url.get(jsd_url)
4242
data.file.write(str(target_path), cli.default_file_config)
4343
log.success(f'{cli.msgs.log_DEFAULT_CONFIG_CREATED_AT} {target_path}')
44-
if in_project_root : log.tip(f'{cli.msgs.tip_MOVE_CONFIG_TO_ROOT}.')
44+
if not in_project_root : log.tip(f'{cli.msgs.tip_MOVE_CONFIG_TO_ROOT}.')
4545

4646
def config_filepath(cli: sn) -> None: # for settings.load()
4747

0 commit comments

Comments
 (0)