Skip to content

Commit

Permalink
Sonar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shred committed Nov 27, 2017
1 parent f291ca3 commit 9cf622f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/shredzone/commons/suncalc/MoonTimes.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public MoonTimes execute() {

Double rise = null;
Double set = null;
double ye = 0.0;
boolean alwaysUp = false;
boolean alwaysDown = false;

Expand All @@ -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) {
Expand Down

0 comments on commit 9cf622f

Please sign in to comment.