We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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 the check for cancellation checkCancellation so that we don't have a double negation (guard & !), throughout the whole framework.
checkCancellation
guard
!
I usually try to void double negations since they make the code harder to read. Instead we can use if.
if
Originally posted by @jdisho in #81 (comment)
The text was updated successfully, but these errors were encountered:
Remove double negations for checkCancellation function (#98)
3f26ab4
# Remove double negations for `checkCancellation` function ## ♻️ Current situation & Problem As mentionned in issue #83 as well as in the PR [#81 (discussion)](#81 (comment)), the SpeziLLM package is currently using a double negation (`guard` followed by `!`) for every `checkCancellation()` function call. As double negations make the code harder to read, we could use `if` instead. ## ⚙️ Release Notes * Remove the double negations for `checkCancellation` by replacing the `guard` statements that are followed by a not operator into an `if` statement. ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
Closed by #98
Sorry, something went wrong.
No branches or pull requests
Refactor the check for cancellation
checkCancellation
so that we don't have a double negation (guard
&!
), throughout the whole framework.Originally posted by @jdisho in #81 (comment)
The text was updated successfully, but these errors were encountered: