Skip to content

Commit

Permalink
Revert changes in ImplicitRemotingCommands.cs because they are not ne…
Browse files Browse the repository at this point in the history
…eded
  • Loading branch information
daxian-dbw committed Sep 7, 2021
1 parent a2e1bb1 commit 44acac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -2821,7 +2821,7 @@ private void GenerateHelperFunctions(TextWriter writer)
$positionalArguments.AddRange($args)
$clientSideParameters = Get-PSImplicitRemotingClientSideParameters $PSBoundParameters ${9}
$clientSideParameters = Get-PSImplicitRemotingClientSideParameters $PSBoundParameters ${8}
$scriptCmd = {{
& $script:InvokeCommand `
Expand All @@ -2843,8 +2843,6 @@ private void GenerateHelperFunctions(TextWriter writer)
End {{ {7} }}
Clean {{ {8} }}
# .ForwardHelpTargetName {1}
# .ForwardHelpCategory {5}
# .RemoteHelpRunspace PSSession
Expand All @@ -2870,8 +2868,7 @@ private static void GenerateCommandProxy(TextWriter writer, CommandMetadata comm
/* 5 */ commandMetadata.WrappedCommandType,
/* 6 */ ProxyCommand.GetProcess(commandMetadata),
/* 7 */ ProxyCommand.GetEnd(commandMetadata),
/* 8 */ ProxyCommand.GetClean(commandMetadata),
/* 9 */ commandMetadata.WrappedAnyCmdlet);
/* 8 */ commandMetadata.WrappedAnyCmdlet);
}

private static void GenerateCommandProxy(TextWriter writer, IEnumerable<CommandMetadata> listOfCommandMetadata)
Expand Down
Expand Up @@ -1127,7 +1127,7 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent
<value>Unable to convert input to the target type [{0}] passed to the ForEach() operator. Please check the specified type and try running your script again.</value>
</data>
<data name="ForEachNotSupportCleanBlock" xml:space="preserve">
<value>Script block with a 'clean' block is not supported.</value>
<value>Script block with a 'clean' block is not supported by the 'ForEach' method.</value>
</data>
<data name="NumberToReturnMustBeGreaterThanZero" xml:space="preserve">
<value>The 'numberToReturn' value provided to the third argument of the Where() operator must be greater than zero. Please correct the argument's value and try running your script again.</value>
Expand Down

0 comments on commit 44acac5

Please sign in to comment.