Skip to content

Commit 3a04f1e

Browse files
committed
rename function to better describe it
1 parent adfa90e commit 3a04f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")
44

5-
def get_root_module(module_ctx):
5+
def get_wanted_module(module_ctx):
66
for mod in module_ctx.modules:
77
if mod.is_root and hasattr(mod.tags.client, "version"):
88
return mod
@@ -11,7 +11,7 @@ def get_root_module(module_ctx):
1111
return mod
1212

1313
def _openapi_generator_impl(module_ctx):
14-
wanted_module = get_root_module(module_ctx)
14+
wanted_module = get_wanted_module(module_ctx)
1515

1616
for install in wanted_module.tags.client:
1717
jvm_maven_import_external(

0 commit comments

Comments
 (0)