diff --git a/database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs b/database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs index e93f4be05c..9b4fa2a78a 100644 --- a/database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs +++ b/database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs @@ -32,7 +32,7 @@ public class Repository public Guid? SourceControlClassId { get; set; } - public bool HasAssignedSourceControlProvider => SourceControlClassId == null ? false : SourceControlClassId.Value != Guid.Empty; + public bool HasAssignedSourceControlProvider => SourceControlClassId.GetValueOrDefault() != Guid.Empty; public DateTime? CreatedUTCDate { get; set; }