From 9eb8c26349cab9dddd4d716043b3fbe0d72dbc01 Mon Sep 17 00:00:00 2001 From: rach-ba Date: Fri, 20 Jan 2023 09:29:46 +0100 Subject: [PATCH] [error] fix error wrap --- errors/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/error.go b/errors/error.go index 19f3c26..52e06cc 100644 --- a/errors/error.go +++ b/errors/error.go @@ -48,7 +48,7 @@ type FullError struct { // Wrap will wrap the given error and return a new Error. func Wrap(err error) Error { - if err != nil { + if err == nil { return nil }