Skip to content

Commit

Permalink
Note that releases must be sorted by version number
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Mar 3, 2025
1 parent 6cd959f commit 733b43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mullvad-update/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl VersionInfo {

/// Returns the first duplicated version found in `releases`.
/// `None` is returned if there are no duplicates.
/// NOTE: `releases` MUST be sorted
/// NOTE: `releases` MUST be sorted on the version number
fn find_duplicate_version(releases: &[format::Release]) -> Option<&mullvad_version::Version> {
releases
.windows(2)
Expand Down

0 comments on commit 733b43a

Please sign in to comment.