refractor: remove dependency on pkg/errors.

This commit is contained in:
Alexandre Pujol 2024-03-07 17:25:13 +00:00
parent 09cdf6158d
commit d40985099c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 8 additions and 11 deletions

View file

@ -5,12 +5,12 @@
package integration
import (
"fmt"
"io"
"net/http"
"strings"
"github.com/arduino/go-paths-helper"
"github.com/pkg/errors"
"github.com/roddhjav/apparmor.d/pkg/util"
)
@ -33,7 +33,7 @@ func (t Tldr) Download() error {
if !gzPath.Exist() {
resp, err := http.Get(t.Url)
if err != nil {
return errors.Wrapf(err, "downloading %s", t.Url)
return fmt.Errorf("downloading %s: %w", t.Url, err)
}
defer resp.Body.Close()