mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-18 13:24:15 +00:00
Remove uneeded if statement
This commit is contained in:
parent
7aa70683aa
commit
fa0f67fa69
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user