Remove null check

This commit is contained in:
Andre Rodrigues
2013-12-08 15:27:44 +01:00
parent 4697c961e6
commit a3ff36302f
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -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");
}