Skip to content

Commit efcd785

Browse files
Use 'is null' over '== null' and similar
Co-authored-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent 2226b75 commit efcd785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/Microsoft.AzureRepos/AzureReposBindingManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ public static void SignIn(this IAzureReposBindingManager bindingManager, string
293293
else
294294
{
295295
// Global is absent or already matches; ensure global is set and local is clear.
296-
if (existingBinding?.GlobalUserName == null)
296+
if (existingBinding?.GlobalUserName is null)
297297
{
298298
bindingManager.Bind(orgName, userName, local: false);
299299
}
300-
if (existingBinding?.LocalUserName != null)
300+
if (existingBinding?.LocalUserName is not null)
301301
{
302302
bindingManager.Unbind(orgName, local: true);
303303
}

0 commit comments

Comments
 (0)