Skip to content

Commit 77a99b4

Browse files
committed
fix: opsMap must not be nil
1 parent fbd6893 commit 77a99b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsl/ops/lookup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "github.com/vim-volt/volt/dsl/types"
44

55
// opsMap holds all operation structs.
66
// All operations in dsl/op/*.go sets its struct to this in init()
7-
var opsMap map[string]types.Op
7+
var opsMap = make(map[string]types.Op)
88

99
// Lookup looks up operator name
1010
func Lookup(name string) (types.Op, bool) {

0 commit comments

Comments
 (0)