Skip to content

Commit

Permalink
satisfy the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Apr 6, 2024
1 parent 764f6e9 commit 0c20d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/restic/cmd_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type fileNode struct {
func listNodes(ctx context.Context, repo restic.Repository, tree restic.ID, path string) ([]fileNode, error) {
var files []fileNode
err := walker.Walk(ctx, repo, tree, walker.WalkVisitor{
ProcessNode: func(parentTreeID restic.ID, nodepath string, node *restic.Node, err error) error {
ProcessNode: func(_ restic.ID, nodepath string, node *restic.Node, err error) error {
if err != nil || node == nil {
return err
}
Expand Down Expand Up @@ -188,7 +188,7 @@ func runWebServer(ctx context.Context, opts ServeOptions, gopts GlobalOptions, a
}
})

http.HandleFunc("/style.css", func(w http.ResponseWriter, r *http.Request) {
http.HandleFunc("/style.css", func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Cache-Control", "max-age=300")
_, _ = w.Write([]byte(stylesheetTxt))
})
Expand Down

0 comments on commit 0c20d04

Please sign in to comment.