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 Umiker 2024-09-24 19:37:50 +09:00
parent b722adc4dd
commit be83ad838c
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
1 changed files with 2 additions and 1 deletions

View File

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