mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-28 03:59:58 -04:00
Remove redundant else
This commit is contained in:
1 parent
a8390a1637
commit
30c76f2ca8
1 file changed
+10
-12
@@ -115,12 +115,11 @@ 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{
|
||||||
@@ -171,12 +170,11 @@ 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{
|
||||||
|
|||||||
Reference in new issue
Block a user