From 779aed7cd6f7e95a7f8b0cc9c2f2627c5c80b890 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 19 Jun 2016 20:16:50 +0300 Subject: [PATCH] Use tabs when saving user configs --- src/clientManager.js | 4 ++-- src/command-line/reset.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clientManager.js b/src/clientManager.js index fefef2a6..10cd60f5 100644 --- a/src/clientManager.js +++ b/src/clientManager.js @@ -84,7 +84,7 @@ ClientManager.prototype.addUser = function(name, password) { }; fs.writeFileSync( Helper.getUserConfigPath(name), - JSON.stringify(user, null, " ") + JSON.stringify(user, null, "\t") ); } catch (e) { log.error("Failed to add user " + name, e); @@ -108,7 +108,7 @@ ClientManager.prototype.updateUser = function(name, opts) { _.assign(user, opts); fs.writeFileSync( Helper.getUserConfigPath(name), - JSON.stringify(user, null, " ") + JSON.stringify(user, null, "\t") ); } catch (e) { log.error("Failed to update user", e); diff --git a/src/command-line/reset.js b/src/command-line/reset.js index ab7b956c..3c046629 100644 --- a/src/command-line/reset.js +++ b/src/command-line/reset.js @@ -26,7 +26,7 @@ program user.token = null; // Will be regenerated when the user is loaded fs.writeFileSync( file, - JSON.stringify(user, null, " ") + JSON.stringify(user, null, "\t") ); log.info("Successfully reset password for '" + name + "'."); });