From 60e7d043fc35831cccccb3941a7cc201abf98125 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 28 Jul 2025 10:22:12 -0300 Subject: [PATCH] chore: fix lint issue --- internal/shell/shell.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/shell/shell.go b/internal/shell/shell.go index d76f9bdcb355cc9314e570761147ab0bce1fd219..751aeeccd9c7dba977366f859f8f0d910c96dbab 100644 --- a/internal/shell/shell.go +++ b/internal/shell/shell.go @@ -248,9 +248,9 @@ func ExitCode(err error) int { if err == nil { return 0 } - status, ok := interp.IsExitStatus(err) - if ok { - return int(status) + var exitErr interp.ExitStatus + if errors.As(err, &exitErr) { + return int(exitErr) } return 1 }