Skip to content

Commit 197ae00

Browse files
authored
Refactor getMinchaGedolaGRAGreaterThan30()
Remove logic that exists in the getMinchaGedolaGreaterThan30(Instant) method.
1 parent 4d11aa2 commit 197ae00

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

β€Žsrc/main/java/com/kosherjava/zmanim/ComprehensiveZmanimCalendar.javaβ€Ž

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,12 +1739,7 @@ public Instant getMinchaGedolaGreaterThan30(Instant minchaGedola) {
17391739
* @see #isUseAstronomicalChatzos()
17401740
*/
17411741
public Instant getMinchaGedolaGRAGreaterThan30() {
1742-
if (getMinchaGedola30Minutes() == null || getMinchaGedolaGRA() == null) {
1743-
return null;
1744-
} else {
1745-
return getMinchaGedola30Minutes().compareTo(getMinchaGedolaGRA()) > 0 ? getMinchaGedola30Minutes()
1746-
: getMinchaGedolaGRA();
1747-
}
1742+
return getMinchaGedolaGreaterThan30(getMinchaGedolaGRA());
17481743
}
17491744

17501745
/**

0 commit comments

Comments
 (0)