We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{}
1 parent 9a91c4c commit b8bf298Copy full SHA for b8bf298
1 file changed
taskfile/ast/var.go
@@ -18,7 +18,10 @@ type Var struct {
18
func (v *Var) UnmarshalYAML(node *yaml.Node) error {
19
switch node.Kind {
20
case yaml.MappingNode:
21
- key := node.Content[0].Value
+ key := "<none>"
22
+ if len(node.Content) > 0 {
23
+ key = node.Content[0].Value
24
+ }
25
switch key {
26
case "sh", "ref", "map":
27
var m struct {
0 commit comments