Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
mirii1994 committed Nov 23, 2023
1 parent 4f6f6aa commit d38d808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _metadata_validation/validate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ def print_missing_fields(file_metadata):
def get_changed_files():
files_str = os.getenv(consts.ENV_FILES_TO_TRACK, '')
if files_str == '':
return []
return [], []
files_str = files_str.replace(' ', '')
files_arr = files_str.split(',')
files_to_track = []
removed_files = []
for file in files_arr:
docs_path = os.getenv(consts.ENV_DOCS_PREFIX, consts.DOCS_PATH)
if not os.path.isfile(docs_path):
if not os.path.isfile(file):
removed_files.append(file)
continue
if file.startswith(docs_path) and file.endswith('.md'):
Expand Down

0 comments on commit d38d808

Please sign in to comment.