We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e29270 commit a052385Copy full SHA for a052385
1 file changed
src/Server/Controllers/Api/v1/VersionController.cs
@@ -18,9 +18,7 @@ public async Task<ActionResult<VersionResponse>> GetLatestStable(
18
[FromQuery] string? arch = null
19
)
20
{
21
- var latest = await vcache.GetReleaseAsync(c => c.Latest);
22
-
23
- if (latest is null)
+ if (await vcache.GetReleaseAsync(c => c.Latest) is not {} latest)
24
return NotFound();
25
26
if (!os.TryParseAsSupportedPlatform(out var supportedPlatform))
0 commit comments