remove some useless code
This commit is contained in:
parent
4f0f8e85c3
commit
a2039c151c
|
@ -56,7 +56,7 @@ public class HolidayManager {
|
|||
String time = o.get("holiday_time").getAsString();
|
||||
Calendar c = CalendarUtil.constructCalendar(time, "0:0");
|
||||
|
||||
if (c != null && CalendarUtil.isSameDay(c, date)) {
|
||||
if (CalendarUtil.isSameDay(c, date)) {
|
||||
return o.get("name").getAsString();
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class HolidayManager {
|
|||
String time = e.getAsString();
|
||||
Calendar c = CalendarUtil.constructCalendar(time, "0:0");
|
||||
|
||||
if (c != null && CalendarUtil.isSameDay(c, date)) {
|
||||
if (CalendarUtil.isSameDay(c, date)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue