Skip to content

Commit

Permalink
remove unnecessary unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
c314m committed Sep 7, 2023
1 parent d3101f9 commit 1f5c780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mod_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,5 @@ pub fn try_parse_mod_info(root_path: &Path) -> Result<ModFileInfo, String> {
}

pub fn parse_mod_info(root_path: &Path) -> ModFileInfo {
try_parse_mod_info(root_path).unwrap()
try_parse_mod_info(root_path).nice_unwrap("Failed to parse mod.json")
}

0 comments on commit 1f5c780

Please sign in to comment.