Skip to content

Commit 6615988

Browse files
committed
asdf
asdf
1 parent 7517619 commit 6615988

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

extension/module/module.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ runtime::Error Module::load_method(
229229
}
230230

231231
ET_NODISCARD inline runtime::Result<Method*> Module::method(
232-
const std::string& method_name) {
233-
ET_CHECK_OR_RETURN_ERROR(
234-
methods_.count(method_name) > 0,
235-
InvalidArgument,
236-
"no such method in program: %s",
237-
method_name.c_str());
238-
return methods_[method_name].method.get();
232+
const std::string& method_name) {
233+
ET_CHECK_OR_RETURN_ERROR(
234+
methods_.count(method_name) > 0,
235+
InvalidArgument,
236+
"no such method in program: %s",
237+
method_name.c_str());
238+
return methods_[method_name].method.get();
239239
}
240240

241241
runtime::Result<MethodMeta> Module::method_meta(

extension/module/module.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,17 @@ class Module {
195195
}
196196

197197
/**
198-
* Get a method by it's name. Not recommended to use this method directly as an end user.
199-
* It's exposed to allow for composability of module in apis that operate on method.
198+
* Get a method by it's name. Not recommended to use this method directly as
199+
* an end user. It's exposed to allow for composability of module in apis that
200+
* operate on method.
200201
*
201202
* @param[in] method_name The name of the method to get.
202203
*
203204
* @returns A Result object containing either a pointer to the requested
204205
* method or an error to indicate failure.
205206
*/
206-
ET_NODISCARD inline runtime::Result<Method*> method(
207-
const std::string& method_name);
207+
ET_NODISCARD inline runtime::Result<Method*> method(
208+
const std::string& method_name);
208209

209210
/**
210211
* Load the 'forward' method from the program and set up memory management if

0 commit comments

Comments
 (0)