From 974be0884b62864d38897ccdac2a1e7f8fee7255 Mon Sep 17 00:00:00 2001 From: skilion Date: Thu, 15 Jun 2017 15:17:47 +0200 Subject: [PATCH] fixed bug where an item is incorrectly assumed to be a file --- src/sync.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.d b/src/sync.d index a6f7f10c..48a90307 100644 --- a/src/sync.d +++ b/src/sync.d @@ -63,7 +63,7 @@ private Item makeItem(const ref JSONValue jsonItem) }; // extract the file hash - if (type == ItemType.file) { + if (isItemFile(jsonItem)) { if ("hashes" in jsonItem["file"]) { if ("crc32Hash" in jsonItem["file"]["hashes"]) { item.crc32Hash = jsonItem["file"]["hashes"]["crc32Hash"].str;