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

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

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)"