Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 52c2c31

Browse files
committed
improved update fetching
1 parent 18be3b3 commit 52c2c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Interop/Updater/UpdateCheck.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ private static bool IsUpToDate(Version currentVer, Version latestVer)
7171
private static async Task<Release> GetLatest()
7272
{
7373
var client = new GitHubClient(new ProductHeaderValue("spcode-client"));
74-
var releases = await client.Repository.Release.GetAll("Hexer10", "SPCode");
75-
return releases[0];
74+
var latestRelease = await client.Repository.Release.GetLatest("Hexer10", "SPCode");
75+
return latestRelease;
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)