all: Unused args, retvals, assignments (#7926)

This commit is contained in:
greatroar
2021-09-08 00:11:16 +02:00
committed by GitHub
parent 13196ddd92
commit 7fa141ea39
10 changed files with 52 additions and 50 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ func newStaticsServer(theme, assetDir string) *staticsServer {
func (s *staticsServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path {
case "/themes.json":
s.serveThemes(w, r)
s.serveThemes(w)
default:
s.serveAsset(w, r)
}
@@ -153,7 +153,7 @@ func (s *staticsServer) serveFromAssets(file, theme string, modificationTime tim
return true
}
func (s *staticsServer) serveThemes(w http.ResponseWriter, r *http.Request) {
func (s *staticsServer) serveThemes(w http.ResponseWriter) {
sendJSON(w, map[string][]string{
"themes": s.availableThemes,
})