From c91263bc0a1031edd3380b660fa416a69bd7e012 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:28:43 +0200 Subject: [PATCH] Remove unneeded check from mergeBrandingTextTranslations --- internal/cli/prompts_custom_text.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/cli/prompts_custom_text.go b/internal/cli/prompts_custom_text.go index 478a62aa9..cdfbafa2d 100644 --- a/internal/cli/prompts_custom_text.go +++ b/internal/cli/prompts_custom_text.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "net/http" - "strings" "github.com/spf13/cobra" "golang.org/x/net/context" @@ -242,10 +241,6 @@ func mergeBrandingTextTranslations( } for key, text := range translations { - if strings.HasPrefix(key, "error") || strings.HasPrefix(key, "devKeys") || key == "usernameOnlyPlaceholder" { - continue - } - if _, ok := mergedTranslations[screen]; !ok { mergedTranslations[screen] = make(map[string]interface{}) }