Fixed indentation

This commit is contained in:
baldo 2016-07-29 12:53:36 +02:00
parent 7921178165
commit c2cea8626f

View file

@ -118,20 +118,20 @@ angular.module('ffffng')
return null; return null;
} }
function toNodeFilename(token, node, nodeSecrets) { function toNodeFilename(token, node, nodeSecrets) {
return config.server.peersPath + '/' + return config.server.peersPath + '/' +
( (
(node.hostname || '') + '@' + (node.hostname || '') + '@' +
(node.mac || '') + '@' + (node.mac || '') + '@' +
(node.key || '') + '@' + (node.key || '') + '@' +
(token || '') + '@' + (token || '') + '@' +
(nodeSecrets.monitoringToken || '') (nodeSecrets.monitoringToken || '')
).toLowerCase(); ).toLowerCase();
} }
function writeNodeFile(isUpdate, token, node, nodeSecrets, callback) { function writeNodeFile(isUpdate, token, node, nodeSecrets, callback) {
var filename = toNodeFilename(token, node, nodeSecrets); var filename = toNodeFilename(token, node, nodeSecrets);
var data = ''; var data = '';
_.each(linePrefixes, function (prefix, key) { _.each(linePrefixes, function (prefix, key) {
var value; var value;
switch (key) { switch (key) {