Skip to content

Commit

Permalink
Fix code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivernis committed Feb 28, 2024
1 parent 5abe796 commit 2f241cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ pub fn latest_stable() -> DataResult<Version> {
})
.map(|(v, _, _, _)| v)
.filter_map(|v| versions_by_minecraft_version().ok()?.remove(&v))
.rev()
.next();
.next_back();

latest.ok_or_else(|| DataError::NotFoundError(String::from("latest version")))
}
Expand Down

0 comments on commit 2f241cb

Please sign in to comment.