Skip to content

Develop#7

Merged
coderynx merged 1 commit intomainfrom
develop
Sep 5, 2025
Merged

Develop#7
coderynx merged 1 commit intomainfrom
develop

Conversation

@coderynx
Copy link
Owner

@coderynx coderynx commented Sep 5, 2025

This pull request refactors the way HTTP results are generated from Result objects in the ResultExtensions class, improving code clarity and separation of concerns. The main change is replacing the internal helper method with more explicit methods for handling success and error cases, making the code easier to read and maintain. The package version is also incremented.

Refactoring HTTP result generation

  • Replaced the internal ToHttpResultInternal helper with two explicit methods: ToHttpSuccessResult for successful results and ToHttpErrorResult for failures, simplifying the logic in ToHttpResult overloads. [1] [2] [3] [4]
  • Updated all ToHttpResult overloads to use the new explicit methods, ensuring failures are handled by ToHttpErrorResult and successes by ToHttpSuccessResult. [1] [2] [3]

Version update

  • Bumped the package version from 1.4.3 to 1.4.4 in version.json.

@coderynx coderynx merged commit 9d1e35f into main Sep 5, 2025
2 checks passed
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