Commit 2118cc5
Ann Paul
Return conditional without using if/else to return boolean values
In this case, since both methods in the conditional strictly returns boolean values, it is defintely safe and more pythonic to return the conditional1 parent 246a7a8 commit 2118cc5
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
0 commit comments