Skip to content

Commit 889c49f

Browse files
author
Kapil Borle
committed
Revert "Allow overwrite Helper instance"
This reverts commit 210d904. We revert this because, this allows the instance to persist through a powershell session across multiple pssa invocations. This is allows us to reuse the command info cache across multiple pssa invocations.
1 parent c7fa7e1 commit 889c49f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Engine/Helper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ internal set
6565
{
6666
lock (syncRoot)
6767
{
68-
instance = value;
68+
if (instance == null)
69+
{
70+
instance = value;
71+
}
6972
}
7073
}
7174
}

0 commit comments

Comments
 (0)