Skip to content

Commit

Permalink
[BUGFIX] replace return of wrong error variable (#3015)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Denis-Kuso authored Dec 23, 2024
1 parent 7af6368 commit 05a6743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/notify/notify_dbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Notify(ctx context.Context, subj, msg string) error {
if call.Err != nil {
debug.Log("DBus notification failure: %s", call.Err)

return err
return call.Err
}

return nil
Expand Down

0 comments on commit 05a6743

Please sign in to comment.