fix the early return
This commit is contained in:
parent
e6fe118201
commit
e90124c4df
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ fn cook(
|
|||
match json_config.item_type {
|
||||
ItemTypeDeser::CraftedGear | ItemTypeDeser::CraftedConsu => {
|
||||
if let Some(real_crafted_type) = json_config.crafted_type {
|
||||
return encode_typedata_custom(&mut fr_params, &real_crafted_type);
|
||||
encode_typedata_custom(&mut fr_params, &real_crafted_type)?;
|
||||
}
|
||||
else {
|
||||
return Err(JsonNotFoundCraftedType)
|
||||
|
|
Loading…
Reference in a new issue