Skip to content

Commit 50acfc2

Browse files
Only set if not already set
1 parent 3bfd760 commit 50acfc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeConverter/Shared/JoinableTaskFactorySingleton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal static class JoinableTaskFactorySingleton
1212

1313
internal static JoinableTaskFactory EnsureInitialized()
1414
{
15-
return Instance = new JoinableTaskFactory(new JoinableTaskContext());
15+
return Instance ??= new JoinableTaskFactory(new JoinableTaskContext());
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)