Skip to content

Commit

Permalink
🎨 Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wesen committed Apr 4, 2024
1 parent a4eedfd commit 2659304
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions pkg/handlers/command-dir/command-dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ func (cd *CommandDirHandler) Serve(server *parka.Server, path string) error {
if renderNode.Command != nil {
nodes = append(nodes, renderNode)
} else {
for _, v := range renderNode.Children {
nodes = append(nodes, v)
}
nodes = append(nodes, renderNode.Children...)
}
err = templ.Execute(c.Writer, gin.H{
"nodes": nodes,
Expand Down
2 changes: 0 additions & 2 deletions pkg/render/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,5 @@ func (r *Renderer) HandleWithTrimPrefix(prefix string, data map[string]interface
return
}
}
// we're done and have written our piece, so we can return
return
}
}

0 comments on commit 2659304

Please sign in to comment.