From 2f33023025917c0ea2b297b3d88ac18aa4c404cb Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 1 Apr 2019 23:16:25 -0700 Subject: [PATCH] Replace singular guard continue with simple if. --- etiquette/constants.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etiquette/constants.py b/etiquette/constants.py index 23168c6..7bfee47 100644 --- a/etiquette/constants.py +++ b/etiquette/constants.py @@ -184,10 +184,8 @@ CREATE INDEX IF NOT EXISTS index_tag_synonyms_name on tag_synonyms(name); def _extract_table_statements(script): for statement in script.split(';'): - if 'create table' not in statement.lower(): - continue - - yield statement + if 'create table' in statement.lower(): + yield statement def _extract_table_name(create_table_statement): # CREATE TABLE table_name(...)