Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vulnfeeds/git/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func VersionToAffectedCommit(version string, repo string, commitType models.Comm
// Take an unnormalized version string, the pre-normalized mapping of tags to commits and return a commit hash.
func VersionToCommit(version string, normalizedTags map[string]NormalizedTag) (string, error) {
if version == "" {
return "", errors.New("version cannot be empty")
return "", nil
}
// TODO: try unnormalized version first.
normalizedVersion, err := NormalizeVersion(version)
Expand Down
Loading