Skip to content

Commit

Permalink
Return version directly as it is already prefixed
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
caendesilva authored Jan 31, 2024
1 parent ba63470 commit a92ee48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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 a92ee48

Please sign in to comment.