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 else: from load_image() #8692

Merged
merged 2 commits into from
Jul 24, 2022
Merged

Remove else: from load_image() #8692

merged 2 commits into from
Jul 24, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jul 23, 2022

Simplifies function and removes 1 line of code.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Optimization by removing unnecessary else clause in data loading function.

πŸ“Š Key Changes

  • Simplified the load_image function by removing an else statement.

🎯 Purpose & Impact

  • πŸš€ Purpose: Streamline code for clarity and remove redundant control flow structure.
  • βœ… Impact: Minor impact, making the code slightly cleaner and more Pythonic, which could marginally improve readability and maintainability for developers. This change has no direct functional impact on end users.

@glenn-jocher glenn-jocher self-assigned this Jul 24, 2022
@glenn-jocher glenn-jocher merged commit 0ab303b into master Jul 24, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch July 24, 2022 22:02
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant