mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
go1.16 (#14783)
This commit is contained in:
5
vendor/gopkg.in/yaml.v3/yaml.go
generated
vendored
5
vendor/gopkg.in/yaml.v3/yaml.go
generated
vendored
@@ -449,6 +449,11 @@ func (n *Node) ShortTag() string {
|
||||
case ScalarNode:
|
||||
tag, _ := resolve("", n.Value)
|
||||
return tag
|
||||
case 0:
|
||||
// Special case to make the zero value convenient.
|
||||
if n.IsZero() {
|
||||
return nullTag
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user