From e1dc0a0ccd515dd187d0a9df3a024efd8c9e0a54 Mon Sep 17 00:00:00 2001 From: makeworld Date: Tue, 1 Sep 2020 16:30:06 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20lint=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .golangci.yml | 3 +++ display/private.go | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a26853f..ea23ce9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -41,3 +41,6 @@ linters-settings: gocritic: disabled-checks: - ifElseChain + goconst: + # minimal length of string constant, 3 by default + min-len: 5 diff --git a/display/private.go b/display/private.go index acfab15..ab9612e 100644 --- a/display/private.go +++ b/display/private.go @@ -347,9 +347,8 @@ func handleURL(t *tab, u string, numRedirects int) (string, bool) { // No proxy available handleHTTP(u, true) return ret("", false) - } else { - usingProxy = true } + usingProxy = true } if !strings.HasPrefix(u, "http") && !strings.HasPrefix(u, "gemini") { @@ -358,9 +357,8 @@ func handleURL(t *tab, u string, numRedirects int) (string, bool) { // No proxy available handleOther(u) return ret("", false) - } else { - usingProxy = true } + usingProxy = true } // Gemini URL, or one with a Gemini proxy available