Skip to content

Commit fdd170d

Browse files
Copilotkartheekp-ms
andcommitted
Fix CS8632: Remove nullable annotation from Matcher variable
Co-authored-by: kartheekp-ms <[email protected]>
1 parent b7c0264 commit fdd170d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NuGet.Core/NuGet.Commands/RestoreCommand/ContentFiles/ContentFileUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ internal static List<LockFileContentFile> GetContentFileGroup(
119119
// When there are no wildcards and no exclude, use simple string comparison
120120
bool useSimpleMatch = !ContainsGlobWildcards(filesEntry.Include) && filesEntry.Exclude == null;
121121

122-
Matcher? matcher = null;
122+
Matcher matcher = null;
123123
if (!useSimpleMatch)
124124
{
125125
// Create a filesystem matcher for globbing patterns
@@ -160,7 +160,7 @@ internal static List<LockFileContentFile> GetContentFileGroup(
160160

161161
// Currently Matcher only returns the file name not the full path, each file must be
162162
// check individually.
163-
var matchResults = matcher!.Execute(globbingDirectory);
163+
var matchResults = matcher.Execute(globbingDirectory);
164164
isMatch = matchResults.HasMatches;
165165
}
166166

0 commit comments

Comments
 (0)