Skip to content

Commit

Permalink
Tidy existing workarounds before enumeration.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwood committed Jun 24, 2024
1 parent dc513d4 commit 7653b5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions implcaps/generic/device_workarounds/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func (i *Implementation) Load(ctx context.Context) (bool, error) {
}

func (i *Implementation) Enumerate(ctx context.Context, m map[string]any) (bool, error) {
i.s.SectionDelete("Workarounds")

for workaround, _ := range m {
if strings.HasPrefix(workaround, "Enable") {
if err := i.enumerateWorkaround(ctx, m, workaround); err != nil {
Expand Down

0 comments on commit 7653b5d

Please sign in to comment.