You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structaccess.Get: return NotFoundError for nil case (#4209)
Follow up to #4204
NotFoundError is meant for cases where path is correct for a given type
but value is not there. nil struct is such case.
This also simplifies test cases. We don't need hasTypeError flag
anymore, because notFoundError already implies hasTypeError=false
// There could be 2 cases: the type is correct but value is not found due to nil, in this case NotFoundError is 100% correct.
57
+
// It could also be that path up to nil is correct, but not after. We don't know because we stop there. In this case NotFoundError refers to path up to nil.
0 commit comments