Skip to content

Commit

Permalink
Check if snapshots are requested
Browse files Browse the repository at this point in the history
  • Loading branch information
tekgator committed May 30, 2023
1 parent 2a206d7 commit 9372a09
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ public static async Task<List<PocketmineVersion>> GetVersion(

var versions = (from release in releaseApi
let asset = release.Assets.First()
let isSnapShot = release.TagName.Contains("beta", StringComparison.OrdinalIgnoreCase)
where options.IncludeSnapshotBuilds || !isSnapShot
select new PocketmineVersion(
Project: project,
Version: release.TagName,
IsSnapShot: release.TagName.Contains("beta", StringComparison.OrdinalIgnoreCase))
IsSnapShot: isSnapShot)
{
Download = new PocketmineDownload(
FileName: asset.Name,
Expand Down

0 comments on commit 9372a09

Please sign in to comment.