mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
Remove null check
This commit is contained in:
@@ -29,8 +29,7 @@ namespace Octokit
|
||||
get { return _color; }
|
||||
set
|
||||
{
|
||||
if (string.IsNullOrEmpty(value)
|
||||
|| !Regex.IsMatch(value, @"\A\b[0-9a-fA-F]{6}\b\Z"))
|
||||
if (!Regex.IsMatch(value, @"\A\b[0-9a-fA-F]{6}\b\Z"))
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("value", "Color should be an hexadecimal string of length 6");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user