Skip to content

Commit

Permalink
Remove code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Guldborg committed Nov 28, 2023
1 parent 071d3fa commit e9fb98b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class AddProductRequest
/// <value> Product User Groups </value>
/// <example> Manager, Board </example>
[Required]
public IEnumerable<UserGroup> AllowedUserGroups { get; set; }
public IEnumerable<UserGroup> AllowedUserGroups { get; set; } = new List<UserGroup>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ public class ChangedProductResponse
/// <value> Product User Groups </value>
/// <example> Manager, Board </example>
[Required]
public IEnumerable<UserGroup> AllowedUserGroups { get; set; }
public IEnumerable<UserGroup> AllowedUserGroups { get; set; } = new List<UserGroup>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public class UpdateProductRequest
/// <value> Product User Groups </value>
/// <example> Manager, Board </example>
[Required]
public IEnumerable<UserGroup> AllowedUserGroups { get; set; }
public IEnumerable<UserGroup> AllowedUserGroups { get; set; } = new List<UserGroup>();
}
}

0 comments on commit e9fb98b

Please sign in to comment.