Auto merge of #13107 - UK992:tidy, r=Wafflespeanut

Tidy: Handle empty files

Fix index error ``list index out of range``, when file is empty.

r? @Wafflespeanut

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13107)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-08-31 07:42:25 -05:00 committed by GitHub
commit c3ce9f2c90
4 changed files with 8 additions and 1 deletions

View file

@ -1 +0,0 @@