Minor cleanup, prevent XY from warning in log

This commit is contained in:
Bryan Ashby 2016-07-06 20:56:30 -06:00
parent 03ee20783b
commit 0519d9a001
1 changed files with 20 additions and 14 deletions

View File

@ -1,17 +1,18 @@
/* jslint node: true */ /* jslint node: true */
'use strict'; 'use strict';
var Config = require('./config.js').config; // ENiGMA½
var Log = require('./logger.js').log; const Config = require('./config.js').config;
var getMessageAreaByTag = require('./message_area.js').getMessageAreaByTag; const Log = require('./logger.js').log;
var clientConnections = require('./client_connections.js'); const getMessageAreaByTag = require('./message_area.js').getMessageAreaByTag;
var sysProp = require('./system_property.js'); const clientConnections = require('./client_connections.js');
const sysProp = require('./system_property.js');
var packageJson = require('../package.json'); // deps
var assert = require('assert'); const packageJson = require('../package.json');
var os = require('os'); const os = require('os');
var _ = require('lodash'); const _ = require('lodash');
var moment = require('moment'); const moment = require('moment');
exports.getPredefinedMCIValue = getPredefinedMCIValue; exports.getPredefinedMCIValue = getPredefinedMCIValue;
@ -114,6 +115,11 @@ function getPredefinedMCIValue(client, code) {
TC : function totalCalls() { return sysProp.getSystemProperty('login_count').toString(); }, TC : function totalCalls() { return sysProp.getSystemProperty('login_count').toString(); },
//
// Special handling for XY
//
XY : function xyHack() { return; /* nothing */ },
}[code](); // :TODO: Just call toString() here and remove above - DRY }[code](); // :TODO: Just call toString() here and remove above - DRY
} catch(e) { } catch(e) {