Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed Jan 8, 2025
1 parent 9f5abee commit ee0e0fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontos/nvd/models/cpe_match_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def from_dict_with_cache(
new_match_string = cls.from_dict(data)

for i, match in enumerate(new_match_string.matches):
cached_match: Optional[CPEMatch] = cpe_match_cache.get(match.cpe_name_id)
cached_match: Optional[CPEMatch] = cpe_match_cache.get(
match.cpe_name_id
)
if cached_match and cached_match.cpe_name == match.cpe_name:
new_match_string.matches[i] = cached_match
else:
Expand Down

0 comments on commit ee0e0fd

Please sign in to comment.