From ef7e56a5519d6b0076c6801b477f5ba19fd8ff39 Mon Sep 17 00:00:00 2001 From: dhuy Date: Mon, 26 May 2014 14:08:53 -0300 Subject: [PATCH] Refactoring the source code of endpoints files --- endpoints/video.js | 4 ++-- endpoints/video_legenda.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/video.js b/endpoints/video.js index 43bf44d..95ae17c 100644 --- a/endpoints/video.js +++ b/endpoints/video.js @@ -54,7 +54,7 @@ function init(req, res) { /* Listener que dispara quando a requisição ao core finaliza */ child.on('close', function(code, signal){ if (code !== 0) { - { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code } return; } + { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code }); return; } } res.send(200, { 'response' : 'http://' + properties.SERVER_IP + ':' + properties.port + '/' + properties.ID_FROM_BD + '.flv' }); @@ -68,7 +68,7 @@ function init(req, res) { child.on('close', function(code, signal){ if (code !== 0) { - { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code } return; } + { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code }); return; } } var path = url.parse(req.body.callback); diff --git a/endpoints/video_legenda.js b/endpoints/video_legenda.js index 58cf72d..95e25ff 100644 --- a/endpoints/video_legenda.js +++ b/endpoints/video_legenda.js @@ -66,7 +66,7 @@ function init(req, res) { /* Listener que dispara quando a requisição ao core finaliza */ child.on('close', function(code, signal){ if (code !== 0) { - { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code } return; } + { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code }); return; } } res.send(200, { 'response' : 'http://' + properties.SERVER_IP + ':' + properties.port + '/' + properties.ID_FROM_BD + '.flv' }); @@ -80,7 +80,7 @@ function init(req, res) { child.on('close', function(code, signal){ if (code !== 0) { - { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code } return; } + { console.log(error); res.send(500, { 'error': 'Erro no Core', 'code': code }); return; } } var path = url.parse(req.body.callback); -- libgit2 0.21.2