Skip to content

Commit

Permalink
Use tabs when saving user configs
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Jun 19, 2016
1 parent e8cc465 commit 779aed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/clientManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/command-line/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "'.");
});
Expand Down

0 comments on commit 779aed7

Please sign in to comment.