Skip to content

Commit

Permalink
Remove unneeded check from mergeBrandingTextTranslations
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Oct 16, 2023
1 parent 53a105e commit c91263b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/cli/prompts_custom_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"net/http"
"strings"

"github.com/spf13/cobra"
"golang.org/x/net/context"
Expand Down Expand Up @@ -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{})
}
Expand Down

0 comments on commit c91263b

Please sign in to comment.