Skip to content

Commit ec5722b

Browse files
committed
fix: lint errors - explicitly ignore return values in killProcessOnPort
1 parent d67fcd6 commit ec5722b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/install/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ func killProcessOnPort(port int) {
236236
if runtime.GOOS == "windows" {
237237
// Windows: find PID and kill
238238
cmd := exec.Command("cmd", "/c", fmt.Sprintf("for /f \"tokens=5\" %%a in ('netstat -aon ^| findstr :%d ^| findstr LISTENING') do taskkill /PID %%a /F", port))
239-
cmd.Run()
239+
_ = cmd.Run() // Ignore error - best effort kill
240240
} else {
241241
// Linux/Mac: use fuser
242-
exec.Command("fuser", "-k", fmt.Sprintf("%d/tcp", port)).Run()
242+
_ = exec.Command("fuser", "-k", fmt.Sprintf("%d/tcp", port)).Run() // Ignore error - best effort kill
243243
}
244244
}
245245

0 commit comments

Comments
 (0)