Skip to content

Commit 90f8caa

Browse files
committed
Also check if the identifier key is set.
1 parent 8fa784b commit 90f8caa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/github_advisory_sync.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ def first_patched_versions_for(package)
341341
first_patched_versions = []
342342

343343
vulnerabilities.each do |v|
344-
if v['package']['name'] == package.name && v['firstPatchedVersion']
344+
if v['package']['name'] == package.name &&
345+
v['firstPatchedVersion'] &&
346+
v['firstPatchedVersion']['identifier']
345347
first_patched_versions << v['firstPatchedVersion']['identifier']
346348
end
347349
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy