From 80328785948e52d0bdf612a72694ca5932efe009 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 28 Jun 2020 14:38:15 +0200 Subject: [PATCH] fix --- lib/Persistent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Persistent.ts b/lib/Persistent.ts index 0dba60c..2c3f0be 100644 --- a/lib/Persistent.ts +++ b/lib/Persistent.ts @@ -35,8 +35,8 @@ export abstract class Persistent implements Assignable, Serializable { public serialize (formatted = false): string { if (formatted) - return JSON.stringify (this._data); - return JSON.stringify (this._data, null, 2); + return JSON.stringify (this._data, null, 2); + return JSON.stringify (this._data); } private check_type (value: unknown, prop: PersistentTypeString): boolean {