Skip to content

Commit

Permalink
fix: update offset constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
dandhlee committed Sep 6, 2024
1 parent 0fda799 commit b7f1291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docfx_yaml/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ def _update_friendly_package_name(path):
# default index will be between 0 and len(defaults) if we
# processed args without defaults, and now only have
# args with default values to assign.
if default_index >= len(defaults):
if default_index < 0 or default_index >= len(defaults):
continue
# Only add defaultValue when str(default) doesn't
# contain object address string, for example:
Expand Down

0 comments on commit b7f1291

Please sign in to comment.