Skip to content

Commit

Permalink
fix: [dashboard:apiActivity] Do not initialize variable if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mokaddem committed Aug 11, 2023
1 parent c91af87 commit cf03704
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/Lib/Dashboard/APIActivityWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ private function getDates($options)
$begin = new DateTime(date('Y-m-d', strtotime('first day of this year 00:00:00', time())));
} else if (!empty($options['start_date'])) {
$begin = new DateTime($options['start_date']);
$end = [];
if (!empty($options['end_date'])) {
$end = new DateTime($options['end_date']);
}
Expand Down

0 comments on commit cf03704

Please sign in to comment.