[Pkg-javascript-commits] [node-mocks-http] 128/296: fixed lint errors in mockRequest

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit 102286df18c508ec87f59ae403386cf2e74d411a
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Sat Mar 21 00:35:44 2015 +0800

    fixed lint errors in mockRequest
---
 lib/mockRequest.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/mockRequest.js b/lib/mockRequest.js
index 717d229..35a4f7b 100644
--- a/lib/mockRequest.js
+++ b/lib/mockRequest.js
@@ -106,11 +106,9 @@ function createRequest(options) {
     mockRequest.param = function(parameterName) {
         if (mockRequest.params[parameterName]) {
             return mockRequest.params[parameterName];
-        }
-        else if (mockRequest.body[parameterName]) {
+        } else if (mockRequest.body[parameterName]) {
             return mockRequest.body[parameterName];
-        }
-        else if (mockRequest.query[parameterName]) {
+        } else if (mockRequest.query[parameterName]) {
             return mockRequest.query[parameterName];
         }
         return null;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git



More information about the Pkg-javascript-commits mailing list