Project

General

Profile

Discarded-Value Expression

Added by Josh Lampco over 9 years ago

In AuthWidget::attemptPasswordLogin(), the function AuthModel::login(Login& login) is called but not assigned even though it returns a bool. Is there any reason that this function should return anything? In the context of the AuthModel I don't see a reason why this function shouldn't return void.

Is this just a function that was overlooked or is there a specific reason this was implemented like this?