diff --git a/src/api2/node/tasks.rs b/src/api2/node/tasks.rs index d7f45eec..f2559a8c 100644 --- a/src/api2/node/tasks.rs +++ b/src/api2/node/tasks.rs @@ -48,12 +48,7 @@ fn extract_upid(param: &Value) -> Result { let upid_str = tools::required_string_param(¶m, "upid")?; - let upid = match upid_str.parse::() { - Ok(v) => v, - Err(err) => bail!("unable to parse UPID '{}' - {}", upid_str, err), - }; - - Ok(upid) + upid_str.parse::() } fn read_task_log(