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
Updates #1313
This PR addresses the first three items recorded in
#1313.
`identify.NewCacheDirectory`, `apidir.NewAPIDirectory`, and
`identity.NewMockDirectory` now return a reference to their respective
values. In all cases this is a quality of life improvement, to implement
the `identify.Directory` and `identity.Resolver` interfaces, a pointer
receiver is required, forcing the caller to store, then reference the
temporary value.
In the case of `identify.NewCacheDirectory` and
`identity.NewMockDirectory`, returning by value was a correctness issue
as those types contain fields which should not be copied.
0 commit comments