Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Aug 27, 2024
1 parent 932d9de commit 2ffbe39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions runtime/sema/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package sema

import (
"io"
"strings"
"sync"

Expand Down Expand Up @@ -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 {
Expand All @@ -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))
})
}

Expand Down

0 comments on commit 2ffbe39

Please sign in to comment.