Unused value 'false' #34
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cli/q#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Error
Code
Unused variable errorto Unused value 'false'This is not a bug. The
falsevalue really is never used anywhere.That's the static analysis making you aware of dead code.
You can fix it by defining
is_sortedwithin the loop usingtrueas the initial value:Its really funny dead code elimination outsmarted me here. Closing the issue