From 25d2143a627531fc0475d639c1e8f657ccafa630 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 20 Sep 2022 13:21:34 +0200 Subject: Golang-ci-lint: Fixes --- internal/util/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/util/util.go') diff --git a/internal/util/util.go b/internal/util/util.go index e652779..834b8d4 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -86,8 +86,8 @@ func ReplaceWAYF(authTemplate string, authURL string, orgID string) string { // https://github.com/eduvpn/documentation/blob/dc4d53c47dd7a69e95d6650eec408e16eaa814a2/SERVER_DISCOVERY.md#language-matching func GetLanguageMatched(languageMap map[string]string, languageTag string) string { - // If no or empty map is given, return the empty string - if languageMap == nil || len(languageMap) == 0 { + // If no map is given, return the empty string + if len(languageMap) == 0 { return "" } // Try to find the exact match -- cgit v1.2.3