Skip to content

Commit

Permalink
Fix lint issue with variable shadowing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsexton committed Nov 22, 2024
1 parent 77aa312 commit 63d802c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpioioctl/gpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,9 @@ func (d *driverGPIO) Init() (bool, error) {
}

Check warning on line 608 in gpioioctl/gpio.go

View check run for this annotation

Codecov / codecov/patch

gpioioctl/gpio.go#L598-L608

Added lines #L598 - L608 were not covered by tests
// First, get all of the chips on the system.
chips := make([]*GPIOChip, 0)
var chip *GPIOChip
for _, item := range items {
chip, err := newGPIOChip(item)
chip, err = newGPIOChip(item)
if err == nil {
chips = append(chips, chip)
} else {
Expand Down

0 comments on commit 63d802c

Please sign in to comment.