Skip to content

Commit

Permalink
Add missing brace and simplify isYomTov logic
Browse files Browse the repository at this point in the history
  • Loading branch information
KosherJava authored Aug 4, 2024
1 parent 4e5abe6 commit e34fc87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e34fc87

Please sign in to comment.