Skip to content

Commit 98754d7

Browse files
chore: fix lint
1 parent 981194a commit 98754d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/sandbox/vpn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func runVPNUp(c *cli.Context) error {
114114
// without a matching server-side session. wg-quick up would then
115115
// fail with "RTNETLINK answers: File exists". Wipe any stale iface
116116
// before proceeding so the user doesn't have to manually intervene.
117-
if out, _ := exec.CommandContext(c.Context, "ip", "link", "show", "cosvpn").Output(); len(out) > 0 {
117+
if out, _ := exec.CommandContext(c.Context, "ip", "link", "show", "cosvpn").Output(); len(out) > 0 { //nolint:errcheck // best-effort stale-iface probe; absent iface yields empty out
118118
cleanup := sudoCommand(c.Context, "wg-quick", "down", confPath)
119119
var cleanupBuf bytes.Buffer
120120
cleanup.Stdout, cleanup.Stderr = pickWGOutputs(debug, &cleanupBuf)

0 commit comments

Comments
 (0)