Skip to content

fix: check qErr != nil but return a nil value error err #935

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

Merged
merged 1 commit into from
Dec 15, 2024
Merged

fix: check qErr != nil but return a nil value error err #935

merged 1 commit into from
Dec 15, 2024

Conversation

alingse
Copy link
Contributor

@alingse alingse commented Dec 15, 2024

the p.Kill() return an error, but return a nil

I create a linter to detect code that returns a non-relevant nilness error bug. I checked the top 1000 GitHub Go repositories and found this, all result listed in alingse/sundrylint#4

Signed-off-by: alingse <alingse@foxmail.com>
@jdkato jdkato merged commit ccf35b9 into errata-ai:v3 Dec 15, 2024
1 check passed
@ccoVeille
Copy link
Contributor

Hi @alingse

Thank you.

I'm glad you did, I'm also using vale

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Dec 28, 2024
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [errata-ai/vale](https://github.com/errata-ai/vale) | patch | `v3.9.1` -> `v3.9.2` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>errata-ai/vale (errata-ai/vale)</summary>

### [`v3.9.2`](https://github.com/errata-ai/vale/releases/tag/v3.9.2)

[Compare Source](errata-ai/vale@v3.9.1...v3.9.2)

#### Changelog

-   [`0c4f880`](errata-ai/vale@0c4f8806) fix: handle regex-based replacements (errata-ai/vale#901)
-   [`df4a934`](errata-ai/vale@df4a9348) refactor: only fetch library when needed (errata-ai/vale#932)
-   [`324a0ff`](errata-ai/vale@324a0ff4) chore: update ruby dependencies ([#&#8203;937](errata-ai/vale#937))
-   [`ccf35b9`](errata-ai/vale@ccf35b9a) fix: check `qErr != nil` but return a nil value error `err` ([#&#8203;935](errata-ai/vale#935))
-   [`71c0258`](errata-ai/vale@71c02585) refactor: support JSON in `ls-dirs`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44Mi43IiwidXBkYXRlZEluVmVyIjoiMzkuODIuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
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.

3 participants