Skip to content

Commit ad35fe4

Browse files
committed
cleanup
1 parent c6848fd commit ad35fe4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/NuGet.Core/NuGet.Packaging/ContentModel/ContentItemCollection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void PopulateItemGroups(PatternSet definition, IList<ContentItemGroup> co
9898
{
9999
foreach (var groupPattern in groupPatterns)
100100
{
101-
var item = groupPattern.Match(asset.Path!, definition.PropertyDefinitions);
101+
var item = groupPattern.Match(asset.Path, definition.PropertyDefinitions);
102102
if (item != null)
103103
{
104104
groupAssets ??= GroupAssetsPool.Allocate();
@@ -257,7 +257,7 @@ private List<ContentItem> FindItemsImplementation(PatternSet definition, IEnumer
257257

258258
foreach (var pathPattern in pathPatterns)
259259
{
260-
var contentItem = pathPattern.Match(path!, definition.PropertyDefinitions);
260+
var contentItem = pathPattern.Match(path, definition.PropertyDefinitions);
261261
if (contentItem != null)
262262
{
263263
//If the item is assembly, populate the "related files extensions property".
@@ -341,7 +341,7 @@ static bool ReadOnlyMemoryEquals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y)
341341

342342
static ReadOnlyMemory<char> GetExtension(Asset asset)
343343
{
344-
int lastIndexOfDot = asset.Path!.LastIndexOf('.');
344+
int lastIndexOfDot = asset.Path.LastIndexOf('.');
345345
if (lastIndexOfDot != -1)
346346
{
347347
return asset.Path.AsMemory(lastIndexOfDot);

0 commit comments

Comments
 (0)