Update golangci-lint to v2

This commit is contained in:
世界 committed 2025-08-13 23:37:40 +08:00
1 parent 043a2e7a07
commit 378e39f70c
20 files changed
+67 -61

No files matched your search

+1 -2
View File
@@ -135,8 +135,7 @@ func ExtendContext(ctx context.Context) (context.Context, *InboundContext) {
func OverrideContext(ctx context.Context) context.Context {
if metadata := ContextFrom(ctx); metadata != nil {
var newMetadata InboundContext
newMetadata = *metadata
newMetadata := *metadata
return WithContext(ctx, &newMetadata)
}
return ctx