mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Add null checks in constructor
This commit is contained in:
@@ -12,6 +12,9 @@ namespace Octokit
|
||||
|
||||
public NewLabel(string name, string color)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
Ensure.ArgumentNotNullOrEmptyString(color, "color");
|
||||
|
||||
Name = name;
|
||||
Color = color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user