Fixed indentation
This commit is contained in:
parent
7921178165
commit
c2cea8626f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue