From 614d5b05ac0dd8362598729f25b8f44e7d2c63cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Tozatti=20Risso?= <jvtr12@inf.ufpr.br>
Date: Fri, 2 Sep 2016 14:27:58 -0300
Subject: [PATCH] Fix linting errors in query middleware
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: João Victor Tozatti Risso <jvtr12@inf.ufpr.br>
---
 src/libs/middlewares/query.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libs/middlewares/query.js b/src/libs/middlewares/query.js
index fb53c561..6b91fc8f 100644
--- a/src/libs/middlewares/query.js
+++ b/src/libs/middlewares/query.js
@@ -1,9 +1,9 @@
-const libs = process.cwd() + '/libs/';
-const log = require(libs + 'log')(module);
-const execQuery = require(libs + 'db/query_exec');
+const libs = `${process.cwd()}/libs`;
+const log = require(`${libs}/log`)(module);
+const execQuery = require(`${libs}/db/query_exec`);
 
 function query(req, res, next) {
-    log.debug(req.query)
+    log.debug(req.query);
     execQuery(req.query.text, req.query.values).then((result) => {
         log.debug(result);
         req.result = result;
-- 
GitLab