Skip to content

Commit 43ad161

Browse files
committed
Remove generator dependency on github.com/samber/lo
1 parent a85db20 commit 43ad161

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

v3/internal/generator/errors.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package generator
33
import (
44
"errors"
55
"fmt"
6+
"maps"
7+
"slices"
68
"sync"
79

8-
"github.com/samber/lo"
910
"github.com/wailsapp/wails/v3/internal/generator/config"
1011
)
1112

@@ -118,7 +119,7 @@ func (report *ErrorReport) Errors() []string {
118119
report.mu.Lock()
119120
defer report.mu.Unlock()
120121

121-
return lo.Keys(report.errors)
122+
return slices.Collect(maps.Keys(report.errors))
122123
}
123124

124125
// Warnings returns the list of warning messages
@@ -128,7 +129,7 @@ func (report *ErrorReport) Warnings() []string {
128129
report.mu.Lock()
129130
defer report.mu.Unlock()
130131

131-
return lo.Keys(report.warnings)
132+
return slices.Collect(maps.Keys(report.warnings))
132133
}
133134

134135
// Errorf formats an error message and adds it to the report.

0 commit comments

Comments
 (0)