Skip to content

Commit

Permalink
Revert "fix(linux): return a nil dbus.Variant if prop not retrieved"
Browse files Browse the repository at this point in the history
This reverts commit 6db5c79.
  • Loading branch information
joshuar committed Nov 19, 2023
1 parent 993146c commit db679be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/linux/dbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ func (r *busRequest) GetProp(prop string) (dbus.Variant, error) {
if err != nil {
log.Warn().Err(err).
Msgf("Unable to retrieve property %s (%s)", prop, r.dest)
return dbus.MakeVariant(nil), err
return dbus.MakeVariant(""), err
}
return res, nil
} else {
return dbus.MakeVariant(nil), errors.New("no bus connection")
return dbus.MakeVariant(""), errors.New("no bus connection")
}
}

Expand Down

0 comments on commit db679be

Please sign in to comment.