]> Sergey Matveev's repositories - sgblog.git/commitdiff
Redundant types
authorSergey Matveev <stargrave@stargrave.org>
Tue, 5 Jan 2021 17:45:10 +0000 (20:45 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 5 Jan 2021 17:45:10 +0000 (20:45 +0300)
cmd/sgblog/http.go

index 403b72111d4c667694e9bfa61339ba9b3a18df9d..ce4bdccb854c8d8d1f86daf971a7b83f9f19ec2b 100644 (file)
@@ -159,11 +159,11 @@ Topics: {{range .Topics}}[<tt><a href="{{$Cfg.URLPrefix}}?topic={{.}}">{{.}}</a>
 
 var (
        renderableSchemes = map[string]struct{}{
-               "ftp":    struct{}{},
-               "gopher": struct{}{},
-               "http":   struct{}{},
-               "https":  struct{}{},
-               "telnet": struct{}{},
+               "ftp":    {},
+               "gopher": {},
+               "http":   {},
+               "https":  {},
+               "telnet": {},
        }
 )