diff --git a/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java b/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java index 10358fb..35a2ed7 100644 --- a/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java +++ b/src/main/java/org/shredzone/commons/suncalc/MoonTimes.java @@ -105,7 +105,6 @@ public MoonTimes execute() { Double rise = null; Double set = null; - double ye = 0.0; boolean alwaysUp = false; boolean alwaysDown = false; @@ -117,7 +116,7 @@ public MoonTimes execute() { double y_plus = correctedMoonHeight(jd.atHour(hour + 1.0)); QuadraticInterpolation qi = new QuadraticInterpolation(y_minus, y_0, y_plus); - ye = qi.getYe(); + double ye = qi.getYe(); if (qi.getNumberOfRoots() == 1) { if (y_minus < 0.0) {