From 43c964a3b82427fba5e78ae0b90cbb2333e196b1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 15 Jun 2021 00:43:48 +0900 Subject: [PATCH] internal/thread: Refactoring --- internal/thread/thread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/thread/thread.go b/internal/thread/thread.go index caa89f4a2..9f7c73a8f 100644 --- a/internal/thread/thread.go +++ b/internal/thread/thread.go @@ -73,7 +73,7 @@ func (t *OSThread) Call(f func() error) error { type NoopThread struct{} // NewNoopThread creates a new thread that does no threading. -func NewNoopThread() Thread { +func NewNoopThread() *NoopThread { return &NoopThread{} }