this repo has no description

ci: fix nits

Signed-off-by: oppiliappan <me@oppi.li>

Changed files
+6 -3
appview
+5 -2
appview/pages/funcmap_test.go
··· 2 2 3 3 import ( 4 4 "html/template" 5 + "log/slog" 6 + "testing" 7 + 5 8 "tangled.org/core/appview/config" 6 9 "tangled.org/core/idresolver" 7 - "testing" 8 10 ) 9 11 10 12 func TestPages_funcMap(t *testing.T) { ··· 13 15 // Named input parameters for receiver constructor. 14 16 config *config.Config 15 17 res *idresolver.Resolver 18 + l *slog.Logger 16 19 want template.FuncMap 17 20 }{ 18 21 // TODO: Add test cases. 19 22 } 20 23 for _, tt := range tests { 21 24 t.Run(tt.name, func(t *testing.T) { 22 - p := NewPages(tt.config, tt.res) 25 + p := NewPages(tt.config, tt.res, tt.l) 23 26 got := p.funcMap() 24 27 // TODO: update the condition below to compare got with tt.want. 25 28 if true {
+1 -1
appview/repo/repo.go
··· 823 823 824 824 f, err := rp.repoResolver.Resolve(r) 825 825 if err != nil { 826 - l.Error("failed to get repo and knot", err) 826 + l.Error("failed to get repo and knot", "err", err) 827 827 w.WriteHeader(http.StatusBadRequest) 828 828 return 829 829 }