mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 17:13:01 -06:00
linter fixes
This commit is contained in:
parent
83ca135be2
commit
51730f998d
3 changed files with 2 additions and 3 deletions
|
|
@ -21,7 +21,6 @@ package router
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package router
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"html/template"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ func noescape(str string) template.HTML {
|
|||
}
|
||||
|
||||
func loadTemplateFunctions(engine *gin.Engine) {
|
||||
return r.engine.SetFuncMap(template.FuncMap{
|
||||
engine.SetFuncMap(template.FuncMap{
|
||||
"noescape": noescape,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ package web
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue