From f0d0443e7aab87aa1488d0fda4df0940c33ca6c2 Mon Sep 17 00:00:00 2001 From: g1stavo Date: Fri, 26 Feb 2021 09:41:59 -0300 Subject: [PATCH] refactor: remove unnecessary return --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index c3eb09c34..99f16ae43 100644 --- a/README.md +++ b/README.md @@ -184,10 +184,7 @@ func TestConsumer(t *testing.T) { req.Header.Set("Content-Type", "application/json") req.Header.Set("Authorization", "Bearer 1234") - if _, err = http.DefaultClient.Do(req); err != nil { - return - } - + _, err = http.DefaultClient.Do(req) return }