Skip to content

Commit

Permalink
fix panic for nil map
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Worm <tony@hofstadter.io>
  • Loading branch information
verdverm committed May 25, 2021
1 parent eeb76a8 commit 865547c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cuetils/attrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

// TODO, improve merge strategy
func AttrToMap(A cue.Attribute) (m map[string]string) {
m = make(map[string]string)
for i := 0; i < A.NumArgs(); i++ {
key, val := A.Arg(i)
m[key] = val
Expand Down

0 comments on commit 865547c

Please sign in to comment.