Skip to content

Commit

Permalink
Merge pull request #11 from oyeaussie/dev
Browse files Browse the repository at this point in the history
- Correct message to send in case of no updates.
  • Loading branch information
oyeaussie authored Jul 3, 2024
2 parents 0c20a00 + 8f89888 commit 09afe5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getUpdates()
}
}

return $this->addResponse(0, 'OK', $updatesSince);
return $this->addResponse(0, (count($updatesSince) > 0) ? 'OK' : 'No Updates!', $updatesSince);
}

return $this->addResponse(0, 'No Updates!');
Expand Down

0 comments on commit 09afe5f

Please sign in to comment.