Skip to content

Commit

Permalink
Return version directly as it is already prefixed
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 7, 2024
1 parent cfb3b64 commit 108e28d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/realtime-compiler/src/Http/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ protected function handlePostRequest(): JsonResponse

public function getVersion(): string
{
$version = InstalledVersions::getPrettyVersion('hyde/realtime-compiler');

return str_starts_with($version, 'dev-') ? $version : "v$version";
return InstalledVersions::getPrettyVersion('hyde/realtime-compiler');
}

public function getProjectInformation(): array
Expand Down

0 comments on commit 108e28d

Please sign in to comment.