Replace singular guard continue with simple if.
This commit is contained in:
parent
2f6f4675ee
commit
2f33023025
1 changed files with 2 additions and 4 deletions
|
@ -184,9 +184,7 @@ CREATE INDEX IF NOT EXISTS index_tag_synonyms_name on tag_synonyms(name);
|
||||||
|
|
||||||
def _extract_table_statements(script):
|
def _extract_table_statements(script):
|
||||||
for statement in script.split(';'):
|
for statement in script.split(';'):
|
||||||
if 'create table' not in statement.lower():
|
if 'create table' in statement.lower():
|
||||||
continue
|
|
||||||
|
|
||||||
yield statement
|
yield statement
|
||||||
|
|
||||||
def _extract_table_name(create_table_statement):
|
def _extract_table_name(create_table_statement):
|
||||||
|
|
Loading…
Reference in a new issue