File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 99* Fixes line/column output during parser errors
1010* --compass now grabs config.rb by default if it exists
1111* Adds --compass-with-config that lets users specify a config
12+ * Fixes parser error bug when trying to parse blank files
1213
1314## 1.0.0 - 4/7/2013 ##
1415
Original file line number Diff line number Diff line change @@ -42,11 +42,15 @@ def execute
4242 open ( filename ) { |f | f . read }
4343 end
4444
45- RedundancyAnalyzer . new ( contents ) . redundancies (
46- minimum : @minimum ,
47- ignored_properties : @ignored_properties ,
48- ignored_selectors : @ignored_selectors
49- )
45+ if contents . strip . empty?
46+ { }
47+ else
48+ RedundancyAnalyzer . new ( contents ) . redundancies (
49+ minimum : @minimum ,
50+ ignored_properties : @ignored_properties ,
51+ ignored_selectors : @ignored_selectors
52+ )
53+ end
5054 end
5155
5256 combined_redundancies = all_redundancies . inject ( { } ) do |combined , redundancies |
You can’t perform that action at this time.
0 commit comments