From 9039774cf74e49aef7fd320e2a811c93724e0ded Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sun, 7 Feb 2021 17:42:52 +0100 Subject: [PATCH] Metadata: Rename unknown country code variable --- pkg/txt/convert.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/txt/convert.go b/pkg/txt/convert.go index ca03c254e..93123cad2 100644 --- a/pkg/txt/convert.go +++ b/pkg/txt/convert.go @@ -6,7 +6,7 @@ import ( "strings" ) -var UnknownCountry = "zz" +var UnknownCountryCode = "zz" var CountryWordsRegexp = regexp.MustCompile("[\\p{L}]{2,}") // Int returns a string as int or 0 if it can not be converted. @@ -41,9 +41,9 @@ func IsUInt(s string) bool { // CountryCode tries to find a matching country code for a given string e.g. from a file oder directory name. func CountryCode(s string) (code string) { - code = UnknownCountry + code = UnknownCountryCode - if s == "" || s == UnknownCountry { + if s == "" || s == UnknownCountryCode { return code }