From 90a44b875ca87e0b990eef24a3fb84275d0e6fb1 Mon Sep 17 00:00:00 2001 From: unclejack Date: Thu, 30 Mar 2017 12:16:48 +0300 Subject: [PATCH] pkg/urlutil: don't compare to bool Signed-off-by: Cristian Staretu --- pkg/urlutil/urlutil_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/urlutil/urlutil_test.go b/pkg/urlutil/urlutil_test.go index 75eb464fe5..d84145a160 100644 --- a/pkg/urlutil/urlutil_test.go +++ b/pkg/urlutil/urlutil_test.go @@ -29,13 +29,13 @@ var ( func TestValidGitTransport(t *testing.T) { for _, url := range gitUrls { - if IsGitTransport(url) == false { + if !IsGitTransport(url) { t.Fatalf("%q should be detected as valid Git prefix", url) } } for _, url := range incompleteGitUrls { - if IsGitTransport(url) == true { + if IsGitTransport(url) { t.Fatalf("%q should not be detected as valid Git prefix", url) } } @@ -43,19 +43,19 @@ func TestValidGitTransport(t *testing.T) { func TestIsGIT(t *testing.T) { for _, url := range gitUrls { - if IsGitURL(url) == false { + if !IsGitURL(url) { t.Fatalf("%q should be detected as valid Git url", url) } } for _, url := range incompleteGitUrls { - if IsGitURL(url) == false { + if !IsGitURL(url) { t.Fatalf("%q should be detected as valid Git url", url) } } for _, url := range invalidGitUrls { - if IsGitURL(url) == true { + if IsGitURL(url) { t.Fatalf("%q should not be detected as valid Git prefix", url) } } @@ -63,7 +63,7 @@ func TestIsGIT(t *testing.T) { func TestIsTransport(t *testing.T) { for _, url := range transportUrls { - if IsTransportURL(url) == false { + if !IsTransportURL(url) { t.Fatalf("%q should be detected as valid Transport url", url) } }