diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-24 08:26:42 +1000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2020-08-23 22:30:32 +0000 |
commit | f172f20219096e6dac26f8f01e7a7fe1f3b5d3ef (patch) | |
tree | 46d197e8f2b25e3075ac89dd5c4245d25b300d63 /go.mod | |
parent | 0f7003d939a969920ffdb5f2d28fca2fd0eb7f65 (diff) |
Return whether the context has a parent or not along with that parent
There has got to be a better way around this but if we're returning a Context
from a function (Context is an interface, not a concrete type), even if we
return nil, on the calling end it won't be equal to nil because an interface
value is a tuple of the type and the value meaning it's never itself nil,
unless both values in the tuple are nil.
So we're explicitly returning whether or not the underlying concrete type is nil.
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions