dbus: assert fmt.Stringer instead of helper.Args on argument seal

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-24 19:37:50 +09:00
parent b722adc4dd
commit be83ad838c

View File

@@ -2,6 +2,7 @@ package dbus
import (
"errors"
"fmt"
"io"
"os"
"os/exec"
@@ -43,7 +44,7 @@ func (p *Proxy) String() string {
}
if p.seal != nil {
return p.seal.(helper.Args).String()
return p.seal.(fmt.Stringer).String()
}
return "(unsealed dbus proxy)"