Fix opening hours

This commit is contained in:
Victor Shcherb 2015-10-21 22:49:36 +02:00
parent dbb1265503
commit 3b79bea784

View file

@ -727,11 +727,10 @@ public class OpeningHoursParser {
}
// check if valid
final OpeningHoursRule r1 = parseRule(r);
boolean rule = r1 instanceof UnparseableRule;
if (!rule) {
return null;
boolean rule = r1 instanceof BasicOpeningHourRule;
if (rule) {
rs.addRule(r1);
}
rs.addRule(r1);
}
return rs;
}