Skip to content

Commit

Permalink
Replace expect with unrap
Browse files Browse the repository at this point in the history
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
  • Loading branch information
cassiancc and Juuxel authored Dec 6, 2024
1 parent 860b03c commit 5c9a3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub fn supports_forge(game_version: JsValue) -> Result<bool, JsValue> {
pub fn arch_api_supports_forge(game_version: JsValue) -> Result<bool, JsValue> {
let game_version: version_resolver::minecraft::MinecraftVersion = serde_wasm_bindgen::from_value(game_version)?;
if game_version.forge_major_version().is_some() {
Ok(game_version.forge_major_version().expect("No forge version available!").parse::<i32>().unwrap() < 50)
Ok(game_version.forge_major_version().unwrap().parse::<i32>().unwrap() < 50)
}
else {
Ok(false)
Expand Down

0 comments on commit 5c9a3b7

Please sign in to comment.