Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
[#47] Try to reduce the nested depth of main
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Oct 7, 2015
1 parent 490522e commit 0fbce20
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions zdict/zdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ def execute_zdict():


def main():
if user_set_encoding_and_is_utf8():
check_zdict_dir_and_db()
if not user_set_encoding_and_is_utf8():
exit()

global dictionary_map
dictionary_map = get_dictionary_map()
check_zdict_dir_and_db()

global args
args = get_args()
set_args()
global dictionary_map
dictionary_map = get_dictionary_map()

execute_zdict()
else:
exit()
global args
args = get_args()
set_args()

execute_zdict()

0 comments on commit 0fbce20

Please sign in to comment.