Skip to content

Commit

Permalink
Reduce duplicate if logic in check_for_spaces_in_model_names
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm committed Apr 12, 2024
1 parent 89aa399 commit c94b70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/parser/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ def check_for_spaces_in_model_names(self):
level=level,
)

if level == EventLevel.ERROR and improper_model_names != 0:
raise DbtValidationError("Model names cannot contain spaces")
if level == EventLevel.ERROR:
raise DbtValidationError("Model names cannot contain spaces")

def load_and_parse_macros(self, project_parser_files):
for project in self.all_projects.values():
Expand Down

0 comments on commit c94b70c

Please sign in to comment.