From ce6d2a8a7794662ec5cfa871afa4a04ddb9d6d51 Mon Sep 17 00:00:00 2001 From: Sergio Andres Virviescas Santana Date: Mon, 21 Jun 2021 16:33:18 +0200 Subject: [PATCH] Remove errors_go112.go --- errors.go | 2 -- errors_go112.go | 19 ------------------- 2 files changed, 21 deletions(-) delete mode 100644 errors_go112.go diff --git a/errors.go b/errors.go index f986c44..afaddc0 100644 --- a/errors.go +++ b/errors.go @@ -1,5 +1,3 @@ -// +build !go1.12 - package atreugo import ( diff --git a/errors_go112.go b/errors_go112.go deleted file mode 100644 index 3d644aa..0000000 --- a/errors_go112.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build go1.12 - -package atreugo - -import ( - "fmt" -) - -func wrapError(err error, message string, args ...interface{}) error { - if len(args) > 0 { - message = fmt.Sprintf(message, args...) - } - - return fmt.Errorf("%s: %v", message, err) // nolint:errorlint -} - -func errorIs(err, target error) bool { - return err == target // nolint:errorlint -}