mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 03:29: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",
|
||||
Post: "\n\n",
|
||||
}
|
||||
} else {
|
||||
return Element{
|
||||
Token: string(node.Literal),
|
||||
Pre: "\n",
|
||||
Post: "\n",
|
||||
}
|
||||
}
|
||||
return Element{
|
||||
Token: string(node.Literal),
|
||||
Pre: "\n",
|
||||
Post: "\n",
|
||||
}
|
||||
case bf.Heading:
|
||||
return Element{
|
||||
@@ -171,12 +170,11 @@ func NewElement(node *bf.Node) Element {
|
||||
Pre: "",
|
||||
Post: "",
|
||||
}
|
||||
} else {
|
||||
return Element{
|
||||
Token: "",
|
||||
Pre: "",
|
||||
Post: "",
|
||||
}
|
||||
}
|
||||
return Element{
|
||||
Token: "",
|
||||
Pre: "",
|
||||
Post: "",
|
||||
}
|
||||
case bf.HTMLBlock:
|
||||
return Element{
|
||||
|
||||
Reference in new issue
Block a user