Skip to content

Commit

Permalink
🔄 Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Feb 16, 2024
1 parent 601bf08 commit 4413211
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/authenforce/enforcers.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func (e Enforcers) Run(ctx context.Context, authState any, req []byte) error {
var wg sync.WaitGroup

for _, enforcer := range e {
enforcer := enforcer
wg.Add(1)

go func() {
Expand Down
1 change: 0 additions & 1 deletion lib/errgroup/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func GroupMapAndWait[TIn, TOut any](group *Group, inputs []TIn, fn func(ctx cont
res = make([]TOut, len(inputs))

for idx, input := range inputs {
idx, input := idx, input
group.Go(func(ctx context.Context) (err error) {
res[idx], err = fn(ctx, input)
return
Expand Down
2 changes: 0 additions & 2 deletions lib/ip/ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ func TestGetIP(t *testing.T) {
}

for _, test := range tests {
test := test

t.Run(test.name, func(t *testing.T) {
ip := GetIP(test.in)

Expand Down
4 changes: 0 additions & 4 deletions lib/weborigin/weborigin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ func TestGetOrigin(t *testing.T) {
}, baseTests...)

for _, test := range tests {
test := test

t.Run(test.Name, func(t *testing.T) {
url, err := url.Parse(test.URL)
if err != nil {
Expand All @@ -145,8 +143,6 @@ func TestGetOrigin(t *testing.T) {

func TestGetWebOrigin(t *testing.T) {
for _, test := range baseTests {
test := test

t.Run(test.Name, func(t *testing.T) {
url, err := url.Parse(test.URL)
if err != nil {
Expand Down

0 comments on commit 4413211

Please sign in to comment.