Skip to content

Commit 4119eb3

Browse files
authored
Fixed intent of GetId
1 parent f852633 commit 4119eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authentication.Abstractions/Extensions/AzureSubscriptionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class AzureSubscriptionExtensions
2828
/// <returns>The globally unique id, if the id is set, otherwise, the enpty Guid</returns>
2929
public static Guid GetId(this IAzureSubscription subscription)
3030
{
31-
return subscription.Id == null? Guid.Empty: new Guid(subscription.Id);
31+
return subscription?.Id == null ? Guid.Empty : new Guid(subscription.Id);
3232
}
3333

3434
/// <summary>

0 commit comments

Comments
 (0)