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 d16a131 commit d2d127fCopy full SHA for d2d127f
pkg/encoding/helpers.go
@@ -138,6 +138,6 @@ func Table(value map[Data]Data) Data {
138
func None() Data {
139
return Data{
140
DataType: TypeNone,
141
- DataValue: nil,
+ DataValue: make(map[string]interface{}),
142
}
143
pkg/encoding/helpers_test.go
@@ -325,7 +325,7 @@ func TestData_Event(t *testing.T) {
325
func TestData_None(t *testing.T) {
326
wantData := Data{
327
DataType: "none",
328
329
330
331
gotData := None()
0 commit comments