From 38ad98d84d1d00b02ad64fbf53cc6bd1612e1fc8 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 16 Jun 2020 00:45:58 -0700 Subject: [PATCH] go-ipfs-config: fix: remove undefined support from unmarshal It's not a part of the JSON spec. --- config/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/types.go b/config/types.go index 979182233..2ca655408 100644 --- a/config/types.go +++ b/config/types.go @@ -84,7 +84,7 @@ func (f Flag) MarshalJSON() ([]byte, error) { func (f *Flag) UnmarshalJSON(input []byte) error { switch string(input) { - case "null", "undefined": + case "null": *f = Default case "false": *f = False