Skip to content

Commit 08b0e39

Browse files
committed
chore: fix a return value and a var declare issue
Signed-off-by: Gang Li <ligangty@users.noreply.github.com>
1 parent 268d1fb commit 08b0e39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

charon/pkgs/maven.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,9 @@ def _generate_upload_archetype_catalog(
862862
available in the bucket. Merge (or unmerge) these catalogs and
863863
return a boolean indicating whether the local file should be uploaded.
864864
"""
865+
remote = ARCHETYPE_CATALOG_FILENAME
865866
if prefix:
866867
remote = os.path.join(prefix, ARCHETYPE_CATALOG_FILENAME)
867-
else:
868-
remote = ARCHETYPE_CATALOG_FILENAME
869868
local = os.path.join(root, ARCHETYPE_CATALOG_FILENAME)
870869
# As the local archetype will be overwrittern later, we must keep
871870
# a cache of the original local for multi-targets support
@@ -884,7 +883,7 @@ def _generate_upload_archetype_catalog(
884883
logger.error(
885884
"Error: Can not generate archtype-catalog.xml due to: %s", e
886885
)
887-
return 0
886+
return False
888887
if not existed:
889888
__gen_all_digest_files(local)
890889
# If there is no catalog in the bucket, just upload what we have locally

0 commit comments

Comments
 (0)