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

Refactor oslScaleImageCreate function for improved readability and efficiency #56

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 2, 2024

Summary

Refactored the oslScaleImageCreate function to enhance readability and efficiency by simplifying the code structure and improving error handling.

Changes

  • Implemented early returns to reduce nesting.
  • Removed redundant NULL checks after image creation.
  • Streamlined the flow of operations for better clarity.

Impact

No functional changes; the refactor improves maintainability and ensures consistent behavior in edge cases.

…ficiency

- Implement early returns to reduce nesting and enhance code clarity.
- Remove redundant NULL checks after oslCreateImage.
- Simplify the flow of operations, ensuring consistent error handling.
@dogo dogo merged commit dc6df8f into master Sep 2, 2024
6 checks passed
@dogo dogo deleted the refactor/oslScaleImage branch September 2, 2024 17:49
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.

1 participant