aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
Diffstat (limited to 'src/context')
-rw-r--r--src/context/afterfunc_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/context/afterfunc_test.go b/src/context/afterfunc_test.go
index 7b75295eb4..c2ef1062d3 100644
--- a/src/context/afterfunc_test.go
+++ b/src/context/afterfunc_test.go
@@ -20,9 +20,7 @@ type afterFuncContext struct {
err error
}
-func newAfterFuncContext() context.Context {
- return &afterFuncContext{}
-}
+var _ context.Context = (*afterFuncContext)(nil)
func (c *afterFuncContext) Deadline() (time.Time, bool) {
return time.Time{}, false