From 2ffbe39f3c12bbfc00b8a4eb896af0d1cb248d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Tue, 27 Aug 2024 09:49:00 -0700 Subject: [PATCH] lint --- runtime/sema/access.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/runtime/sema/access.go b/runtime/sema/access.go index b80bbaf3d8..9def8f908b 100644 --- a/runtime/sema/access.go +++ b/runtime/sema/access.go @@ -19,7 +19,6 @@ package sema import ( - "io" "strings" "sync" @@ -134,7 +133,7 @@ func FormatEntitlementSetTypeID[T ~string](entitlementTypeIDs []T, kind Entitlem return T(builder.String()) } -func (e EntitlementSetAccess) format(w io.StringWriter, typeFormatter func(Type) string) { +func (e EntitlementSetAccess) format(sb *strings.Builder, typeFormatter func(Type) string) { var separator string switch e.SetKind { @@ -150,9 +149,9 @@ func (e EntitlementSetAccess) format(w io.StringWriter, typeFormatter func(Type) e.Entitlements.ForeachWithIndex(func(i int, entitlement *EntitlementType, _ struct{}) { if i > 0 { - w.WriteString(separator) + sb.WriteString(separator) } - w.WriteString(typeFormatter(entitlement)) + sb.WriteString(typeFormatter(entitlement)) }) }