Skip to content

Commit f042fa8

Browse files
committed
fix fixes
1 parent f40fe0d commit f042fa8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type FileInfo struct {
9292
mode os.FileMode
9393
modTime time.Time
9494
isDir bool
95-
sys interface{}
95+
sys any
9696

9797
files []os.FileInfo
9898
}
@@ -128,7 +128,7 @@ func (f *FileInfo) Readdir(_ int) ([]os.FileInfo, error) {
128128
}
129129

130130
// Sys returns the underlying value.
131-
func (f *FileInfo) Sys() interface{} {
131+
func (f *FileInfo) Sys() any {
132132
return f.sys
133133
}
134134

templates.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ func init() {
4949
}
5050
}
5151

52-
func newTemplateContext(req events.Request) (map[string]interface{}, error) {
52+
func newTemplateContext(req events.Request) (map[string]any, error) {
5353
session, err := sm.Read(req)
5454
if err != nil {
55-
return map[string]interface{}{}, err
55+
return map[string]any{}, err
5656
}
5757
orgs := make([]string, len(session.Memberships))
5858
idx := 0
@@ -62,7 +62,7 @@ func newTemplateContext(req events.Request) (map[string]interface{}, error) {
6262
}
6363
sort.Strings(orgs)
6464

65-
tc := map[string]interface{}{
65+
tc := map[string]any{
6666
"request": req,
6767
"config": config.TemplateData,
6868
"session": session,

0 commit comments

Comments
 (0)