Skip to content

Commit

Permalink
Small refactoring in CouchQuery.
Browse files Browse the repository at this point in the history
  • Loading branch information
gokr committed Sep 21, 2009
1 parent 814a5eb commit d7d4bcf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/CouchQuery.cs
Expand Up @@ -216,26 +216,26 @@ public bool IsCachedAndValid()
return req.Head().Send().IsETagValid();
}


public string String()
{
CouchRequest req = View.Request().QueryOptions(Options);
return Request().String();
}


public CouchRequest Request()
{
var req = View.Request().QueryOptions(Options);
if (postData != null)
{
req.Data(postData).Post();
}

return req.String();
return req;
}

public T GetResult<T>() where T : CouchViewResult, new()
{
CouchRequest req = View.Request().QueryOptions(Options);

if (postData != null)
{
req.Data(postData).Post();
}
var req = Request();

if (Result == null)
{
Expand Down

0 comments on commit d7d4bcf

Please sign in to comment.