mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Fix lint issues (#285)
* fix(lint): cascadeStyles always passed true * fix(lint): gomnd
This commit is contained in:
+2
-2
@@ -138,11 +138,11 @@ type StyleConfig struct {
|
||||
HTMLSpan StyleBlock `json:"html_span,omitempty"`
|
||||
}
|
||||
|
||||
func cascadeStyles(toBlock bool, s ...StyleBlock) StyleBlock {
|
||||
func cascadeStyles(s ...StyleBlock) StyleBlock {
|
||||
var r StyleBlock
|
||||
|
||||
for _, v := range s {
|
||||
r = cascadeStyle(r, v, toBlock)
|
||||
r = cascadeStyle(r, v, true)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user