mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-24 22:39:52 +03:00
fix: Hotfix/awesome zero files (#919)
* perf: faster implementation of the TwoSum problem * doc: fixed typos on comments * updating DIRECTORY.md * fix: comments on includes. Doxygen file. static test function * fix: revert 1.c * updating DIRECTORY.md * fix: 0 files are not in one and only one directory Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
parent
7a324e2c75
commit
5cca0ebd48
6
.github/workflows/awesome_workflow.yml
vendored
6
.github/workflows/awesome_workflow.yml
vendored
@ -137,10 +137,12 @@ jobs:
|
||||
print("\n".join(space_files) + "\n")
|
||||
|
||||
nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file]
|
||||
nodir_file_bad_files = len(nodir_files) - 1
|
||||
if nodir_file_bad_files:
|
||||
if len(nodir_files) > 1:
|
||||
nodir_file_bad_files = len(nodir_files) - 1
|
||||
print(f"{len(nodir_files)} files are not in one and only one directory:")
|
||||
print("\n".join(nodir_files) + "\n")
|
||||
else:
|
||||
nodir_file_bad_files = 0
|
||||
|
||||
bad_files = nodir_file_bad_files + len(upper_files + space_files)
|
||||
if bad_files:
|
||||
|
Loading…
Reference in New Issue
Block a user