Skip to content

Commit 75be718

Browse files
fix: remove redundancy in condition for empty mapping lookup table
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fc96dc0 commit 75be718

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ontograph/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def translate_ids(
141141
Returns:
142142
list[str]: List of translated term IDs.
143143
"""
144-
if mapping_lut is None or mapping_lut == {}:
144+
if not mapping_lut:
145145
logger.warning('Warning: Mapping LUT is not available.')
146146
return terms_id
147147

0 commit comments

Comments
 (0)