Skip to content

Commit

Permalink
fix(5595): remove ErrNotExist check
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanyalti committed Jan 22, 2025
1 parent a04a828 commit a2fe26b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/pkg/agent/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package cmd
import (
"errors"
"fmt"
"io/fs"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -363,10 +362,6 @@ func execUninstall(streams *cli.IOStreams, topPath string, binName string) error
binPath := filepath.Join(topPath, binName)
fi, err := os.Stat(binPath)
if err != nil {
if errors.Is(err, fs.ErrNotExist) {
return fmt.Errorf("unable to find %s on path: %w", binPath, err)
}

return fmt.Errorf("error checking binary path %s: %w", binPath, err)
}

Expand Down

0 comments on commit a2fe26b

Please sign in to comment.