Skip to content

Commit

Permalink
please gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Feb 12, 2024
1 parent 6d07df5 commit 06b8e6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions element.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,12 @@ func (e *Element) ParseParams(params []any) (attrs []template.HTMLAttr) {
case []template.HTMLAttr:
attrs = append(attrs, data...)
case string:
attrs = append(attrs, template.HTMLAttr(data)) // #nosec G203
attr := template.HTMLAttr(data) // #nosec G203
attrs = append(attrs, attr)
case []string:
for _, s := range data {
attrs = append(attrs, template.HTMLAttr(s)) // #nosec G203
attr := template.HTMLAttr(s) // #nosec G203
attrs = append(attrs, attr)
}
case EventFn:
if data != nil {
Expand Down

0 comments on commit 06b8e6a

Please sign in to comment.