From bbbfeb68f3a1b2e841636c6dd933b7a89c16bff1 Mon Sep 17 00:00:00 2001 From: skilion Date: Sun, 25 Dec 2016 20:17:02 +0100 Subject: [PATCH] fix condition in applyDifferences loop --- src/sync.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.d b/src/sync.d index ac27fbf2..f07554dd 100644 --- a/src/sync.d +++ b/src/sync.d @@ -109,7 +109,7 @@ final class SyncEngine } statusToken = changes["@delta.token"].str; std.file.write(cfg.statusTokenFilePath, statusToken); - } while ((changes.type != JSON_TYPE.OBJECT) && (("@odata.nextLink" in changes) !is null)); + } while (!((changes.type == JSON_TYPE.OBJECT) && (("@odata.nextLink" in changes) is null))); } catch (ErrnoException e) { throw new SyncException(e.msg, e); } catch (FileException e) {