Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#nullable enable

using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;

#nullable enable

namespace System.Management.Automation
{
/// <summary>
Expand All @@ -18,7 +18,7 @@ namespace System.Management.Automation
internal class CommandPathSearch : IEnumerable<string>, IEnumerator<string>
{
[TraceSource("CommandSearch", "CommandSearch")]
private static PSTraceSource s_tracer = PSTraceSource.GetTracer("CommandSearch", "CommandSearch");
private static readonly PSTraceSource s_tracer = PSTraceSource.GetTracer("CommandSearch", "CommandSearch");

/// <summary>
/// Constructs a command searching enumerator that resolves the location
Expand All @@ -44,7 +44,7 @@ internal CommandPathSearch(
string commandName,
LookupPathCollection lookupPaths,
ExecutionContext context,
Collection<string> acceptableCommandNames,
Collection<string>? acceptableCommandNames,
bool useFuzzyMatch)
{
_useFuzzyMatch = useFuzzyMatch;
Expand Down
Loading