Skip to content

Commit

Permalink
enhancement: gofmt myself
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceJJones committed Dec 30, 2024
1 parent 1129ef7 commit 8360705
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/formatters/mikrotik/mikrotik.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Format(w http.ResponseWriter, r *http.Request) {

// Parse the template
parsedTemplate, err := template.New("script").Funcs(template.FuncMap{
"contains": strings.Contains,
"contains": strings.Contains,
}).Parse(MikrotikScriptTemplate)
if err != nil {
http.Error(w, "Error parsing template: "+err.Error(), http.StatusInternalServerError)
Expand All @@ -65,4 +65,3 @@ func Format(w http.ResponseWriter, r *http.Request) {
}
w.Write(buf.Bytes())
}

0 comments on commit 8360705

Please sign in to comment.