Skip to content

Commit 4019c18

Browse files
committed
Issue#1537: Minor performance improvement in does_token_type_exist_in_list_of_tokens.
1 parent f6384a6 commit 4019c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vsg/vhdlFile/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def count_token_types_in_list_of_tokens(oType, lTokens):
703703

704704

705705
def does_token_type_exist_in_list_of_tokens(oType, lTokens):
706-
return count_token_types_in_list_of_tokens(oType, lTokens) != 0
706+
return oType in lTokens
707707

708708

709709
def get_toi_parameters(oToi):

0 commit comments

Comments
 (0)