Skip to content

Commit

Permalink
chore: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
danjohnson95 committed Aug 3, 2023
1 parent bfd6679 commit 969faeb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/Jobs/FetchNewJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ public function handle(RSSDataService $rssDataService): void
if ($newestPost && $newestPost->published_at->eq($lastBuildDate)) {
// Nothing to do
} else {
$posts = [];
foreach ($feed->channel->item as $post) {
$jobPost = $this->storeJobPost($post);
if ($jobPost) {
$posts[] = $jobPost;
}
$this->storeJobPost($post);
}
}

Expand Down

0 comments on commit 969faeb

Please sign in to comment.