mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 14:28:02 +08:00
go-ipfs-config: fix: remove undefined support from unmarshal
It's not a part of the JSON spec.
This commit is contained in:
parent
5c1b4cd0e6
commit
38ad98d84d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user