Skip to content

Commit a709630

Browse files
committed
Fix: don't lazy initialize execution contexts linked list [fixup crystal-lang#15350]
It's pointless because we always add the default context anyway. Let's make the initialization explicit.
1 parent 47cf9ab commit a709630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fiber/execution_context.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Fiber::ExecutionContext
2929
end
3030

3131
# :nodoc:
32-
protected class_getter(execution_contexts) { Thread::LinkedList(ExecutionContext).new }
32+
protected class_getter(execution_contexts) = Thread::LinkedList(ExecutionContext).new
3333

3434
# :nodoc:
3535
property next : ExecutionContext?

0 commit comments

Comments
 (0)