Skip to content

Commit

Permalink
Remove generator dependency on github.com/samber/lo
Browse files Browse the repository at this point in the history
  • Loading branch information
fbbdev committed Jan 15, 2025
1 parent a85db20 commit 43ad161
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions v3/internal/generator/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package generator
import (
"errors"
"fmt"
"maps"
"slices"
"sync"

"github.com/samber/lo"
"github.com/wailsapp/wails/v3/internal/generator/config"
)

Expand Down Expand Up @@ -118,7 +119,7 @@ func (report *ErrorReport) Errors() []string {
report.mu.Lock()
defer report.mu.Unlock()

return lo.Keys(report.errors)
return slices.Collect(maps.Keys(report.errors))
}

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

return lo.Keys(report.warnings)
return slices.Collect(maps.Keys(report.warnings))
}

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

0 comments on commit 43ad161

Please sign in to comment.