Skip to content

Commit

Permalink
DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHudson committed Nov 7, 2023
1 parent b348dce commit 0a540e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Console/Listen.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ protected function expose(): void
$matches)
) {
$tunnel = $matches[1];
note(sprintf('Found webhook endpoint: %s', $tunnel));
$this->setupWebhook($tunnel);
}
}
Expand Down Expand Up @@ -231,7 +230,6 @@ protected function ngrok(): void
$tunnel ?? '',
['https://', 'http://']
)) {
note(sprintf('Found webhook endpoint: %s', $tunnel));
$this->setupWebhook($tunnel);
}
}
Expand Down Expand Up @@ -264,6 +262,7 @@ protected function ngrok(): void

protected function setupWebhook(string $tunnel): void
{
note("Found webhook endpoint: {$tunnel}");
note('Sending webhook to Lemon Squeezy...');

$data = [
Expand Down

0 comments on commit 0a540e9

Please sign in to comment.