-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
Bug Report: code check call.Err !=nil
but return a nil value error err
#3012
Labels
bug
Defects
Comments
Please provide more details. |
gopass/internal/notify/notify_dbus.go Lines 23 to 34 in bd408d6
check |
Ha, looks legit, indeed. Thanks. |
dominikschulz
added
bug
Defects
and removed
can-not-reproduce
Bug can't be reproduced
labels
Dec 17, 2024
I’d like to work on fixing this. Seems like just a small correction in the variable return. Will submit a PR soon. |
Denis-Kuso
added a commit
to Denis-Kuso/gopass-fork
that referenced
this issue
Dec 19, 2024
This fixes the issue gopasspw#3012 where the error returned by the `Notify()` call would incorrectly return a nil value (from `dbus.SessionBus()`), instead of the correct non-nil value (from `call.Err`). Signed-off-by: Denis-Kuso <[email protected]>
dominikschulz
pushed a commit
that referenced
this issue
Dec 23, 2024
This fixes the issue #3012 where the error returned by the `Notify()` call would incorrectly return a nil value (from `dbus.SessionBus()`), instead of the correct non-nil value (from `call.Err`). Signed-off-by: Denis-Kuso <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
do you mean
return call.Err
or justreturn nil
to ignore the call.Err ?Steps To Reproduce
Expected behavior
Environment
Additional context
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
The text was updated successfully, but these errors were encountered: