Skip to content

Conversation

@SamuelGuizani
Copy link

This patch adds a missing fallback return false; to the passthrough methods. A function must always guarantee a return value that matches its signature, even when the code path seems obvious. Without that, the compiler complains.

This change ensures the method now consistently returns a valid boolean in all cases. (A small reminder that one of the most fundamental rules in programming is: if a function says it returns something… it should actually return something 😉)

This patch adds a missing fallback return false; to the passthrough methods.
A function must always guarantee a return value that matches its signature, even when the code path seems obvious. Without that, the compiler complains.

This change ensures the method now consistently returns a valid boolean in all cases.
(A small reminder that one of the most fundamental rules in programming is: if a function says it returns something… it should actually return something 😉)
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.

1 participant