Commit e903b59
committed
Make sure logic less conditionals also check empty state.
In the documentation of the conditional it is stated that "If the object is not false or empty?, the content will show", but before this commit, we didn't check on `empty?`. Especially combined with the inverted conditional (where `empty?` is actually checked), this is very confusing, because this means a value can be true and false at the same time.1 parent 00217e1 commit e903b59
File tree
2 files changed
+13
-1
lines changed- lib/slim/logic_less
- test/logic_less
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
305 | 316 | | |
306 | 317 | | |
307 | 318 | | |
| |||
0 commit comments