remove some useless code

This commit is contained in:
hlq07 2018-05-12 18:23:28 +08:00
parent 4f0f8e85c3
commit a2039c151c
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class HolidayManager {
String time = o.get("holiday_time").getAsString(); String time = o.get("holiday_time").getAsString();
Calendar c = CalendarUtil.constructCalendar(time, "0:0"); Calendar c = CalendarUtil.constructCalendar(time, "0:0");
if (c != null && CalendarUtil.isSameDay(c, date)) { if (CalendarUtil.isSameDay(c, date)) {
return o.get("name").getAsString(); return o.get("name").getAsString();
} }
} }
@ -85,7 +85,7 @@ public class HolidayManager {
String time = e.getAsString(); String time = e.getAsString();
Calendar c = CalendarUtil.constructCalendar(time, "0:0"); Calendar c = CalendarUtil.constructCalendar(time, "0:0");
if (c != null && CalendarUtil.isSameDay(c, date)) { if (CalendarUtil.isSameDay(c, date)) {
return true; return true;
} }
} }