refractor: remove dependency on pkg/errors.
This commit is contained in:
parent
09cdf6158d
commit
d40985099c
4 changed files with 8 additions and 11 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue