mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Go: Fix comment in NewSemVer for empty string
This commit is contained in:
@@ -52,7 +52,7 @@ func Zero() SemVer {
|
||||
// the empty string, this function return `nil`. Otherwise, for invalid version strings, the function
|
||||
// prints a message to the log and exits the process.
|
||||
func NewSemVer(version string) SemVer {
|
||||
// If the input is the empty string, return nil f
|
||||
// If the input is the empty string, return `nil` since we use `nil` to represent "no version".
|
||||
if version == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user