From ed9214eb847eac7f3460abf9035b038c79c060ca Mon Sep 17 00:00:00 2001 From: LeoCp Date: Mon, 13 Jun 2016 19:39:18 -0300 Subject: [PATCH] arrow function --- serve.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serve.js b/serve.js index 1a04e99..ad3dc99 100644 --- a/serve.js +++ b/serve.js @@ -10,8 +10,8 @@ const mount = st({ index: 'index.html' }) -http.createServer( - function (req, res) { mount(req, res) } -).listen(8080, - function () { console.log('http://localhost:8080') } -) +http.createServer((req, res) => { + mount(req, res) +}).listen(8080,() => { + console.log('http://localhost:8080') +})