File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,9 +308,7 @@ class ExecuTorchJni : public facebook::jni::HybridClass<ExecuTorchJni> {
308308 << std::uppercase << static_cast <uint32_t >(result) << " ]" ;
309309
310310 jni_helper::throwExecutorchException (
311- static_cast <uint32_t >(
312- Error::InvalidArgument), // For backward compatibility
313- ss.str ());
311+ static_cast <uint32_t >(result), ss.str ());
314312 return {};
315313 }
316314 auto && underlying_method = module_->methods_ [method].method ;
@@ -460,9 +458,7 @@ class ExecuTorchJni : public facebook::jni::HybridClass<ExecuTorchJni> {
460458 << " ]" ;
461459
462460 jni_helper::throwExecutorchException (
463- static_cast <uint32_t >(
464- Error::InvalidArgument), // For backward compatibility
465- ss.str ());
461+ static_cast <uint32_t >(Error::InvalidArgument), ss.str ());
466462 return {};
467463 }
468464 const auto & methods = names_result.get ();
You can’t perform that action at this time.
0 commit comments