Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e34fc87

Browse files
Add missing brace and simplify isYomTov logic
1 parent 4e5abe6 commit e34fc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ public int getYomTovIndex() {
798798
*/
799799
public boolean isYomTov() {
800800
int holidayIndex = getYomTovIndex();
801-
if ((isErevYomTov() && (holidayIndex != HOSHANA_RABBA && holidayIndex != CHOL_HAMOED_PESACH))
801+
if ((isErevYomTov() && ! ( holidayIndex == HOSHANA_RABBA || holidayIndex == CHOL_HAMOED_PESACH))
802802
|| (isTaanis() && holidayIndex != YOM_KIPPUR) || holidayIndex == ISRU_CHAG) {
803803
return false;
804804
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /