@@ -24,7 +24,7 @@ namespace Microsoft.PowerShell.PSResourceGet.Cmdlets
2424 public sealed class FindPSResource : PSCmdlet
2525 {
2626 #region Members
27-
27+
2828 private const string NameParameterSet = "NameParameterSet" ;
2929 private const string CommandNameParameterSet = "CommandNameParameterSet" ;
3030 private const string DscResourceNameParameterSet = "DscResourceNameParameterSet" ;
@@ -39,7 +39,7 @@ public sealed class FindPSResource : PSCmdlet
3939 /// Specifies name of a resource or resources to find. Accepts wild card characters.
4040 /// </summary>
4141 [ SupportsWildcards ]
42- [ Parameter ( Position = 0 ,
42+ [ Parameter ( Position = 0 ,
4343 ValueFromPipeline = true ,
4444 ValueFromPipelineByPropertyName = true ,
4545 ParameterSetName = NameParameterSet ) ]
@@ -167,7 +167,6 @@ protected override void ProcessRecord()
167167
168168 private void ProcessResourceNameParameterSet ( )
169169 {
170- WriteDebug ( "In FindPSResource::ProcessResourceNameParameterSet()" ) ;
171170 // only cases where Name is allowed to not be specified is if Type or Tag parameters are
172171 if ( ! MyInvocation . BoundParameters . ContainsKey ( nameof ( Name ) ) )
173172 {
@@ -178,7 +177,7 @@ private void ProcessResourceNameParameterSet()
178177 }
179178 else if ( MyInvocation . BoundParameters . ContainsKey ( nameof ( Type ) ) )
180179 {
181- Name = new string [ ] { "*" } ;
180+ Name = new string [ ] { "*" } ;
182181 }
183182 else
184183 {
@@ -191,8 +190,8 @@ private void ProcessResourceNameParameterSet()
191190 }
192191
193192 WriteDebug ( "Filtering package name(s) on wildcards" ) ;
194- Name = Utils . ProcessNameWildcards ( Name , removeWildcardEntries : false , out string [ ] errorMsgs , out bool nameContainsWildcard ) ;
195-
193+ Name = Utils . ProcessNameWildcards ( Name , removeWildcardEntries : false , out string [ ] errorMsgs , out bool nameContainsWildcard ) ;
194+
196195 foreach ( string error in errorMsgs )
197196 {
198197 WriteError ( new ErrorRecord (
@@ -208,7 +207,7 @@ private void ProcessResourceNameParameterSet()
208207 {
209208 WriteDebug ( "Package name(s) could not be resolved" ) ;
210209 return ;
211- }
210+ }
212211
213212 // determine/parse out Version param
214213 VersionType versionType = VersionType . VersionRange ;
@@ -232,7 +231,7 @@ private void ProcessResourceNameParameterSet()
232231 "IncorrectVersionFormat" ,
233232 ErrorCategory . InvalidArgument ,
234233 this ) ) ;
235-
234+
236235 return ;
237236 }
238237 }
@@ -289,7 +288,7 @@ private void ProcessCommandOrDscParameterSet(bool isSearchingForCommands)
289288 WriteDebug ( "Command or DSCResource name(s) could not be resolved" ) ;
290289 return ;
291290 }
292-
291+
293292 foreach ( PSCommandResourceInfo cmdPkg in _findHelper . FindByCommandOrDscResource (
294293 isSearchingForCommands : isSearchingForCommands ,
295294 prerelease : Prerelease ,
@@ -325,7 +324,7 @@ private void ProcessTags()
325324 WriteDebug ( "Tags(s) could not be resolved" ) ;
326325 return ;
327326 }
328-
327+
329328 foreach ( PSResourceInfo tagPkg in _findHelper . FindByTag (
330329 type : Type ,
331330 prerelease : Prerelease ,
0 commit comments