Skip to content

Firefly III: a personal finances manager

Code cleanup [skip ci]

James Cole78afb771b1c2
diff --git a/app/Support/Navigation.php b/app/Support/Navigation.php
index 6744621271..063f04be03 100644
--- a/app/Support/Navigation.php
+++ b/app/Support/Navigation.php
@@ -341,9 +341,10 @@ class Navigation
if ($range == '6M') {
if ($start->month >= 7) {
$end->endOfYear();
- } else {
- $end->startOfYear()->addMonths(6);
+
+ return $end;
}
+ $end->startOfYear()->addMonths(6);
return $end;
}