|
|
|
|
|
by Guvante
3647 days ago
|
|
If you want to be really concise you could also remove the precondition that loggedIn returns true before calling hasRole and have it simply return false if loggedIn isn't true. But it seemed to me that the important bit was two dependent conditionals, not this exact example. |
|