Skip to content

Commit c5a2e7a

Browse files
committed
fix formatting cuz it was bugging me
Signed-off-by: si458 <simonsmith5521@gmail.com>
1 parent 943a391 commit c5a2e7a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

agents/meshcore.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -967,36 +967,36 @@ function getIpLocationDataEx(func) {
967967
var options = http.parseUri(url);
968968
options.method = 'GET';
969969
http.request(options, function (resp) {
970-
var geoData = '';
970+
var geoData = '';
971971
resp.data = function (chunk) { geoData += chunk; };
972972
resp.end = function () {
973973
try {
974-
var result = JSON.parse(geoData);
975-
if (result.ip && result.loc) {
976-
getIpLocationDataExInProgress = false;
977-
getIpLocationDataExCounts[1]++;
978-
func(result);
979-
return;
974+
var result = JSON.parse(geoData);
975+
if (result.ip && result.loc) {
976+
getIpLocationDataExInProgress = false;
977+
getIpLocationDataExCounts[1]++;
978+
func(result);
979+
return;
980980
}
981981
} catch (ex) { }
982-
if (fallback) { fallback(); } else { done(null); }
983-
};
982+
if (fallback) { fallback(); } else { done(null); }
983+
};
984984
if (resp.statusCode != 200) { if (fallback) { fallback(); } else { done(null); } }
985985
}).on('error', function () {
986986
if (fallback) { fallback(); } else { done(null); }
987987
}).end();
988988
}
989989

990990
function done(result) {
991-
getIpLocationDataExInProgress = false;
991+
getIpLocationDataExInProgress = false;
992992
if (func) { func(result); }
993993
}
994994

995995
tryEndpoint('https://v6.ipinfo.io/json', function () {
996996
tryEndpoint('https://ipinfo.io/json', null);
997997
});
998998

999-
return true;
999+
return true;
10001000
}
10011001

10021002
// Remove all Gateway MAC addresses for interface list. This is useful because the gateway MAC is not always populated reliably.
@@ -6373,7 +6373,7 @@ function sendPeriodicServerUpdate(flags, force) {
63736373
try {
63746374
require('win-deskutils').idle.getSecondsAllSessions().then(function (seconds) {
63756375
meshCoreObj.idletime = seconds;
6376-
meshCoreObjChanged();
6376+
meshCoreObjChanged();
63776377
});
63786378
} catch (ex) { sendConsoleText('Error getting idle time: ' + ex.toString());}
63796379
}

0 commit comments

Comments
 (0)