Skip to content

Commit 1528e99

Browse files
committed
use build pattern for less repeated code
1 parent 250e941 commit 1528e99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Engine/Helper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ public PSModuleInfo GetModuleManifest(string filePath, out IEnumerable<ErrorReco
306306
using (var ps = System.Management.Automation.PowerShell.Create())
307307
{
308308
ps.RunspacePool = _runSpacePool;
309-
ps.AddCommand("Test-ModuleManifest");
310-
ps.AddParameter("Path", filePath);
311-
ps.AddParameter("WarningAction", ActionPreference.SilentlyContinue);
309+
ps.AddCommand("Test-ModuleManifest")
310+
.AddParameter("Path", filePath)
311+
.AddParameter("WarningAction", ActionPreference.SilentlyContinue);
312312
try
313313
{
314314
psObj = ps.Invoke();

0 commit comments

Comments
 (0)