Skip to content

Commit bffa363

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
fbcode//executorch/extension/module:module_aten
Reviewed By: dtolnay Differential Revision: D79042242
1 parent 6d4b68a commit bffa363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/module/module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ ET_NODISCARD runtime::Result<Method*> Module::method(
232232
const std::string& method_name) {
233233
ET_CHECK_OK_OR_RETURN_ERROR(load_method(method_name));
234234
ET_CHECK_OR_RETURN_ERROR(
235-
methods_.count(method_name) > 0,
235+
methods_.contains(method_name),
236236
InvalidArgument,
237237
"no such method in program: %s",
238238
method_name.c_str());

0 commit comments

Comments
 (0)