From 8f99657223f83969e538e41a692e04884b0e99ce Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Wed, 9 Dec 2015 10:02:37 +0100 Subject: [PATCH] client: dry --- client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.go b/client.go index be61f95..7e2c1b2 100644 --- a/client.go +++ b/client.go @@ -92,15 +92,14 @@ func (c *Client) ReadDir(path string) ([]os.FileInfo, error) { f.name = p.Name } f.path = path + f.name + f.modified = parseModified(&p.Modified) if p.Type.Local == "collection" { f.path += "/" f.size = 0 - f.modified = parseModified(&p.Modified) f.isdir = true } else { f.size = parseInt64(&p.Size) - f.modified = parseModified(&p.Modified) f.isdir = false }