Move separator defaulting back into Tag.

This commit is contained in:
Alec Thomas
2018-06-13 22:58:53 +10:00
parent ecf21e4cc9
commit 662ace41c5
3 changed files with 7 additions and 9 deletions
-3
View File
@@ -27,9 +27,6 @@ func JSON(r io.Reader) (ResolverFunc, error) {
return "", nil
}
sep := flag.Tag.Sep
if sep == 0 {
sep = ','
}
value, err := jsonDecodeValue(sep, raw)
if err != nil {
return "", err