Skip to content

Commit 6bd499f

Browse files
committed
Fix bug in call abstractions
1 parent 3309eaa commit 6bd499f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/apis/call.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import "github.com/godbus/dbus/v5"
44

55
// CallWithoutResult works like [Call] but does not read a result.
66
func CallWithoutResult(callName string, args ...any) error {
7-
_, err := call(callName, args)
7+
_, err := call(callName, args...)
88
return err
99
}
1010

1111
// Call calls the given call name for a portal using passed arguments and returns the output.
1212
func Call(callName string, args ...any) (any, error) {
13-
call, err := call(callName, args)
13+
call, err := call(callName, args...)
1414
if err != nil {
1515
return nil, err
1616
}

0 commit comments

Comments
 (0)