Commit b84a536
Simon Andrews
Don't fail on file-level comments
The loader works great when there are comments within a selector, but
before this commit, if there were comments in a file that aren’t within
a selector, they were causing the loader to fail.
Such a comment doesn’t have any selectors, so this change simply checks
to see if `rule.selectors` is truth before continuing.1 parent 4df32d4 commit b84a536
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments