mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 20:17:21 +00:00
Run gopls modernize
on codebase (#34751)
Recent modernize fixes: https://github.com/golang/tools/commits/master/gopls/internal/analysis/modernize
This commit is contained in:
@ -6,6 +6,7 @@ package reqctx
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"maps"
|
||||
"sync"
|
||||
|
||||
"code.gitea.io/gitea/modules/process"
|
||||
@ -22,9 +23,7 @@ func (ds ContextData) GetData() ContextData {
|
||||
}
|
||||
|
||||
func (ds ContextData) MergeFrom(other ContextData) ContextData {
|
||||
for k, v := range other {
|
||||
ds[k] = v
|
||||
}
|
||||
maps.Copy(ds, other)
|
||||
return ds
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user