Skip to content

Conversation

@djoreilly
Copy link

The entry variable is redeclared inside an if block and later sometimes set to nil within the block which has no effect on the entry variable in the outer block. Later in the outer block there is a comparison with nil which is always true. Fix by just assigning it in the inner block. Actually this makes no functional difference, but fixes a linter warning.

The entry variable is redeclared inside an if block and later sometimes
set to nil within the block which has no effect on the entry variable
in the outer block. Later in the outer block there is a comparison with
nil which is always true. Fix by just assigning it in the inner block.
Actually this makes no functional difference, but fixes a linter warning.
@djoreilly djoreilly merged commit a5f6fda into SUSE:sensor-base-0.7.0 Jun 27, 2025
3 checks passed
@djoreilly djoreilly deleted the fix-hash-shadowed-variable branch June 27, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants