mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
Fix a few minor JSHint warnings
Summary: Basically, don't assign expressions to a variable if the variable is unused. Test Plan: `arc lint` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11072
This commit is contained in:
parent
b6e0c76c7d
commit
fcc7dbbf15
1 changed files with 3 additions and 3 deletions
|
@ -69,13 +69,13 @@ process.on('uncaughtException', function(err) {
|
|||
process.exit(1);
|
||||
});
|
||||
|
||||
var flash_server = new JX.AphlictFlashPolicyServer()
|
||||
new JX.AphlictFlashPolicyServer()
|
||||
.setDebugLog(debug)
|
||||
.setAccessPort(config.port)
|
||||
.start();
|
||||
|
||||
|
||||
var send_server = net.createServer(function(socket) {
|
||||
net.createServer(function(socket) {
|
||||
var listener = clients.addListener(socket);
|
||||
|
||||
debug.log('<%s> Connected from %s',
|
||||
|
@ -161,7 +161,7 @@ var messages_out = 0;
|
|||
var messages_in = 0;
|
||||
var start_time = new Date().getTime();
|
||||
|
||||
var receive_server = http.createServer(function(request, response) {
|
||||
http.createServer(function(request, response) {
|
||||
// Publishing a notification.
|
||||
if (request.url == '/') {
|
||||
if (request.method == 'POST') {
|
||||
|
|
Loading…
Reference in a new issue