mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 08:57:14 -04:00
Remove redundant else
This commit is contained in:
@@ -115,13 +115,12 @@ func NewElement(node *bf.Node) Element {
|
||||
Pre: "\n",
|
||||
Post: "\n\n",
|
||||
}
|
||||
} else {
|
||||
}
|
||||
return Element{
|
||||
Token: string(node.Literal),
|
||||
Pre: "\n",
|
||||
Post: "\n",
|
||||
}
|
||||
}
|
||||
case bf.Heading:
|
||||
return Element{
|
||||
Token: fmt.Sprintf("%s %s", strings.Repeat("#", node.HeadingData.Level), node.FirstChild.Literal),
|
||||
@@ -171,13 +170,12 @@ func NewElement(node *bf.Node) Element {
|
||||
Pre: "",
|
||||
Post: "",
|
||||
}
|
||||
} else {
|
||||
}
|
||||
return Element{
|
||||
Token: "",
|
||||
Pre: "",
|
||||
Post: "",
|
||||
}
|
||||
}
|
||||
case bf.HTMLBlock:
|
||||
return Element{
|
||||
Token: string(node.Literal),
|
||||
|
||||
Reference in New Issue
Block a user