Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary condition inside create_file_list #12

Open
PrashanthaTP opened this issue Aug 23, 2021 · 1 comment
Open

Remove unnecessary condition inside create_file_list #12

PrashanthaTP opened this issue Aug 23, 2021 · 1 comment
Labels
codequality promote best coding practices

Comments

@PrashanthaTP
Copy link
Owner

Why check for length of FROM_DIR ,when we can assign the value in the first place

FROM_DIR = ''
TO_DIR = ''
VIDEOS_PER_ACTOR = 30
if len(FROM_DIR)==0:
FROM_DIR = os.path.dirname(os.path.abspath(__file__))
FROM_DIR = os.path.join(FROM_DIR,DATASET)
TO_DIR = FROM_DIR

@PrashanthaTP PrashanthaTP added the codequality promote best coding practices label Aug 23, 2021
@PrashanthaTP
Copy link
Owner Author

Yeayaah😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality promote best coding practices
Projects
None yet
Development

No branches or pull requests

1 participant