@cryptotaxi247 / kubo / commits / 38ad98d84

go-ipfs-config: fix: remove undefined support from unmarshal

It's not a part of the JSON spec.

Steven Allen committed Jun 16, 2020 at 00:45 UTC 38ad98d84d1d00b02ad64fbf53cc6bd1612e1fc8
1 file changed +1 -1
config/types.go
+1 -1
@@ -84,7 +84,7 @@ func (f Flag) MarshalJSON() ([]byte, error) {
84
85 func (f *Flag) UnmarshalJSON(input []byte) error {
86 switch string(input) {
87 - case "null", "undefined":
87 + case "null":
88 *f = Default
89 case "false":
90 *f = False