lookfirst/sardine

Wrong parameter in DavQuota of SardineImpl

jithutintu opened this issue · 3 comments

Hello ,
Here in below piece of code in SardineImpl the constructor of DavQuota expect response .but the parameter passed is DavResource resource in below code.

if (resource.getStatusCode() == 200) return new DavQuota(resource);

Could you please rectify it?

Thanks

See pull request: #344

The existing code passes the required type Response and I cannot spot any error.

The existing code passes in the following line:

if (resource.getStatusCode() == 200) return new DavQuota(resource);

an object of type DavResource to the constructor of DavQuota instead of sth. of type Response as needed.