Skip to content

Commit

Permalink
Improve style of fileServer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Finchiedev committed Aug 20, 2019
1 parent f1326d2 commit a479dc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Server/fileServer.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -15,7 +15,7 @@ server.on('connection', function(socket) {
}
console.log(`Saved the file as ${filename}.csv`);
});
})
})
});
});

server.listen(5004, '');
server.listen(5004, '');

0 comments on commit a479dc1

Please sign in to comment.