From e34fc879313b045f35e70b5947e2c2e20a4364c5 Mon Sep 17 00:00:00 2001 From: KosherJava Date: Sun, 4 Aug 2024 11:09:24 -0400 Subject: [PATCH] Add missing brace and simplify isYomTov logic --- .../com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java index 47c4f7fa..acc987f2 100644 --- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java +++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java @@ -798,7 +798,7 @@ public int getYomTovIndex() { */ public boolean isYomTov() { int holidayIndex = getYomTovIndex(); - if ((isErevYomTov() && (holidayIndex != HOSHANA_RABBA && holidayIndex != CHOL_HAMOED_PESACH)) + if ((isErevYomTov() && ! ( holidayIndex == HOSHANA_RABBA || holidayIndex == CHOL_HAMOED_PESACH)) || (isTaanis() && holidayIndex != YOM_KIPPUR) || holidayIndex == ISRU_CHAG) { return false; }