aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pipewire/client.go')
-rw-r--r--internal/pipewire/client.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/internal/pipewire/client.go b/internal/pipewire/client.go
index ce2b6272..0dce269b 100644
--- a/internal/pipewire/client.go
+++ b/internal/pipewire/client.go
@@ -50,10 +50,7 @@ type ClientInfo struct {
func (c *ClientInfo) MarshalBinary() ([]byte, error) { return Marshal(c) }
// UnmarshalBinary satisfies [encoding.BinaryUnmarshaler] via [Unmarshal].
-func (c *ClientInfo) UnmarshalBinary(data []byte) error {
- _, err := Unmarshal(data, c)
- return err
-}
+func (c *ClientInfo) UnmarshalBinary(data []byte) error { return Unmarshal(data, c) }
// ClientUpdateProperties is used to update the properties of a client.
type ClientUpdateProperties struct {
@@ -65,7 +62,4 @@ type ClientUpdateProperties struct {
func (c *ClientUpdateProperties) MarshalBinary() ([]byte, error) { return Marshal(c) }
// UnmarshalBinary satisfies [encoding.BinaryUnmarshaler] via [Unmarshal].
-func (c *ClientUpdateProperties) UnmarshalBinary(data []byte) error {
- _, err := Unmarshal(data, c)
- return err
-}
+func (c *ClientUpdateProperties) UnmarshalBinary(data []byte) error { return Unmarshal(data, c) }