Skip to content

Commit

Permalink
Merge if statement with enclosing
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Jan 11, 2023
1 parent ac6a0f4 commit 3c244a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ssg/build_ovals.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ def _check_rule_id(oval_file_tree, rule_id):


def _create_output_directory(directory_path=None):
if directory_path:
if not os.path.exists(directory_path):
os.makedirs(directory_path)
if directory_path and not os.path.exists(directory_path):
os.makedirs(directory_path)


def _store_intermediate_files(rule_id, xml_content, directory_path=None):
Expand Down

0 comments on commit 3c244a6

Please sign in to comment.