File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public struct RegistryConfig
97
97
// The value of the environment variable should be a JSON array of objects, such as:
98
98
// [ { "type": "nuget_feed", "url": "https://nuget.pkg.github.com/org/index.json" } ]
99
99
var array = JsonConvert . DeserializeObject < List < RegistryConfig > > ( registryURLs ) ;
100
- if ( array != null )
100
+ if ( array is not null )
101
101
{
102
102
foreach ( RegistryConfig config in array )
103
103
{
Original file line number Diff line number Diff line change @@ -267,15 +267,15 @@ private void RestoreProjects(IEnumerable<string> projects, HashSet<string>? conf
267
267
// `nuget.config` files instead of the command-line arguments.
268
268
HashSet < string > ? sources = null ;
269
269
270
- if ( this . dependabotProxy != null )
270
+ if ( this . dependabotProxy is not null )
271
271
{
272
272
// If the Dependabot proxy is configured, then our main goal is to make `dotnet` aware
273
273
// of the private registry feeds. However, since providing them as command-line arguments
274
274
// to `dotnet` ignores other feeds that may be configured, we also need to add the feeds
275
275
// we have discovered from analysing `nuget.config` files.
276
276
sources = configuredSources ?? new ( ) ;
277
277
sources . Add ( PublicNugetOrgFeed ) ;
278
- this . dependabotProxy ? . RegistryURLs . ForEach ( url => sources . Add ( url ) ) ;
278
+ this . dependabotProxy . RegistryURLs . ForEach ( url => sources . Add ( url ) ) ;
279
279
}
280
280
281
281
var successCount = 0 ;
You can’t perform that action at this time.
0 commit comments