Skip to content

Commit 0671e04

Browse files
authored
fix: length error
1 parent bcd7e4b commit 0671e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnfeeds/cves/versions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func Repo(u string) (string, error) {
160160
parsedURL.Hostname(), parsedURL.Path),
161161
nil
162162
}
163-
if len(pathParts) >= 2 && parsedURL.Hostname() == "git.ffmpeg.org" {
163+
if len(pathParts) > 2 && parsedURL.Hostname() == "git.ffmpeg.org" {
164164
return fmt.Sprintf("%s://%s/%s", parsedURL.Scheme, parsedURL.Hostname(), pathParts[2]), nil
165165
}
166166
if parsedURL.Hostname() == "sourceware.org" {

0 commit comments

Comments
 (0)