mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 18:43: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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"html/template"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
|
@ -27,7 +28,7 @@ func noescape(str string) template.HTML {
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadTemplateFunctions(engine *gin.Engine) {
|
func loadTemplateFunctions(engine *gin.Engine) {
|
||||||
return r.engine.SetFuncMap(template.FuncMap{
|
engine.SetFuncMap(template.FuncMap{
|
||||||
"noescape": noescape,
|
"noescape": noescape,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue