Remove uneeded if statement

This commit is contained in:
Gara Dorta 2026-05-15 18:34:50 +02:00
parent 7aa70683aa
commit fa0f67fa69

View File

@ -162,9 +162,6 @@ func extractDocTemplate(content string) (string, int, int, error) {
func unmarshalDocument(content string, withSchemesTemplate bool) (map[string]interface{}, error) {
if withSchemesTemplate {
content = strings.ReplaceAll(content, "` + \"`\" + `", "`")
}
if withSchemesTemplate {
content = strings.Replace(content, schemesTemplateValue, `"`+schemesPlaceholderToken+`"`, 1)
}