Skip to content

Commit

Permalink
Fix duplicate load of workarounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwood committed Jun 24, 2024
1 parent c167d87 commit ca1926a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions implcaps/generic/device_workarounds/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ func (i *Implementation) Load(ctx context.Context) (bool, error) {
i.m.Lock()
defer i.m.Unlock()

i.workaroundsEnabled = i.s.Section("Workarounds").SectionKeys()

for _, workaround := range i.workaroundsEnabled {
for _, workaround := range i.s.Section("Workarounds").SectionKeys() {
if err := i.loadWorkaround(ctx, workaround); err != nil {
return false, err
} else {
Expand Down

0 comments on commit ca1926a

Please sign in to comment.