Skip to content

Commit

Permalink
rename function to better describe it
Browse files Browse the repository at this point in the history
  • Loading branch information
tempacc21 committed Jan 18, 2025
1 parent adfa90e commit 3a04f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

def get_root_module(module_ctx):
def get_wanted_module(module_ctx):
for mod in module_ctx.modules:
if mod.is_root and hasattr(mod.tags.client, "version"):
return mod
Expand All @@ -11,7 +11,7 @@ def get_root_module(module_ctx):
return mod

def _openapi_generator_impl(module_ctx):
wanted_module = get_root_module(module_ctx)
wanted_module = get_wanted_module(module_ctx)

for install in wanted_module.tags.client:
jvm_maven_import_external(
Expand Down

0 comments on commit 3a04f1e

Please sign in to comment.