From a2039c151c28dcc12077ca50df0d3f868555b542 Mon Sep 17 00:00:00 2001 From: hlq07 Date: Sat, 12 May 2018 18:23:28 +0800 Subject: [PATCH] remove some useless code --- .../java/org/cutem/cutecalendar/model/HolidayManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java b/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java index ed5e57e..4ef2e74 100644 --- a/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java +++ b/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java @@ -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; } }