Skip to content

Commit a052385

Browse files
committed
[ci skip] missed a spot for pattern matching
1 parent 2e29270 commit a052385

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Server/Controllers/Api/v1/VersionController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ public async Task<ActionResult<VersionResponse>> GetLatestStable(
1818
[FromQuery] string? arch = null
1919
)
2020
{
21-
var latest = await vcache.GetReleaseAsync(c => c.Latest);
22-
23-
if (latest is null)
21+
if (await vcache.GetReleaseAsync(c => c.Latest) is not {} latest)
2422
return NotFound();
2523

2624
if (!os.TryParseAsSupportedPlatform(out var supportedPlatform))

0 commit comments

Comments
 (0)