From a479dc17dc7176f8296e75e482b3366850d543ca Mon Sep 17 00:00:00 2001 From: finchiedev Date: Tue, 20 Aug 2019 21:51:58 +0800 Subject: [PATCH] Improve style of fileServer.js --- Server/fileServer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/fileServer.js b/Server/fileServer.js index c19558f..419a3f8 100644 --- a/Server/fileServer.js +++ b/Server/fileServer.js @@ -1,6 +1,6 @@ const fs = require('fs'); const net = require('net'); -let server = net.createServer() +const server = net.createServer(); server.on('connection', function(socket) { socket.on('data', function(data) { @@ -15,7 +15,7 @@ server.on('connection', function(socket) { } console.log(`Saved the file as ${filename}.csv`); }); - }) -}) + }); +}); -server.listen(5004, ''); \ No newline at end of file +server.listen(5004, '');