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