Skip to content

Commit

Permalink
Fix two SonarCloud bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 19, 2023
1 parent 7a0b2d0 commit 6bcb1f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ciscoconfparse/ccp_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2997,7 +2997,7 @@ def __init__(self, interface_name=None, interface_dict=None, debug=False):
error = f"interface_name must be a string, not {type(interface_name)}."
logger.critical(error)
raise InvalidCiscoInterface(error)
elif interface_name is not None:
elif interface_dict is not None:
error = f"interface_dict must be a dict, not {type(interface_dict)}."
logger.critical(error)
raise InvalidCiscoInterface(error)
Expand Down Expand Up @@ -4177,8 +4177,6 @@ def as_compressed_str(self, debug=False):
):
if range_list[-1] != "-":
range_list += ["-"]
else:
range_list = range_list
else:
range_list += [input_str[ii]]
if len(input_str) > 1:
Expand Down

0 comments on commit 6bcb1f6

Please sign in to comment.