Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getSingleImpl: don't check whether a map value is zero
The code that checked whether a map value is zero was wrong. It passed the reflect.Value itself, which before Go 1.13 was never zero. In Go 1.13 this changed, as reflect.Value got an IsZero method, which reports whether the value stored in the reflect.Value is zero. Checking that causes tests in go-openapi/spec to fail. Fixes go-openapi/spec#99 Signed-off-by: Ian Lance Taylor <[email protected]>
- Loading branch information