only pass through non-null parameters

This commit is contained in:
Brendan Forster
2014-04-23 10:22:09 +09:30
parent 83ff498e06
commit 81fc84b962
+4 -1
View File
@@ -83,7 +83,10 @@ namespace Octokit
var d = new Dictionary<string, string>();
d.Add("page", Page.ToString(CultureInfo.CurrentCulture));
d.Add("per_page", PerPage.ToString(CultureInfo.CurrentCulture));
d.Add("sort", Sort);
if (!String.IsNullOrWhiteSpace(Sort))
{
d.Add("sort", Sort);
}
d.Add("order", SortOrder);
d.Add("q", TermAndQualifiers);
return d;