From 838c1cd50d9b12a5a3012b1f320a19f7331659d4 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 15 Aug 2018 00:28:58 -0300 Subject: [PATCH] fix: revert unwanted change --- internal/pipeline/release/remote.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/pipeline/release/remote.go b/internal/pipeline/release/remote.go index db4e00a70..119848341 100644 --- a/internal/pipeline/release/remote.go +++ b/internal/pipeline/release/remote.go @@ -11,11 +11,7 @@ import ( // remoteRepo gets the repo name from the Git config. func remoteRepo() (result config.Repo, err error) { - isRepo, err := git.IsRepo() - if err != nil { - return result, err - } - if !isRepo { + if !git.IsRepo() { return result, errors.New("current folder is not a git repository") } out, err := git.Run("config", "--get", "remote.origin.url")