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

It's not a part of the JSON spec.
This commit is contained in:
Steven Allen 2020-06-16 00:45:58 -07:00
parent 5c1b4cd0e6
commit 38ad98d84d

View File

@ -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