From af41ab40e1fc4888d1873a9ffe681ddafdfb4ee0 Mon Sep 17 00:00:00 2001 From: Avi Dessauer Date: Wed, 21 Aug 2019 06:03:31 -0400 Subject: Delete trailing whitespace (#42) --- javascript/server/index.js | 2 +- javascript/server/mocks/packages.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'javascript/server') diff --git a/javascript/server/index.js b/javascript/server/index.js index eadf932..330a75c 100644 --- a/javascript/server/index.js +++ b/javascript/server/index.js @@ -16,7 +16,7 @@ function usingProxy() { module.exports = function(app) { if (usingProxy()) { return; } - + const globSync = require('glob').sync; const mocks = globSync('./mocks/**/*.js', { cwd: __dirname }).map(require); const proxies = globSync('./proxies/**/*.js', { cwd: __dirname }).map(require); diff --git a/javascript/server/mocks/packages.js b/javascript/server/mocks/packages.js index 5da80b2..0a60cf3 100644 --- a/javascript/server/mocks/packages.js +++ b/javascript/server/mocks/packages.js @@ -380,15 +380,15 @@ const testModuleInfo = { module.exports = function(app) { const express = require('express'); let packagesRouter = express.Router(); - - packagesRouter.get('/api/packages', function(req, res) { + + packagesRouter.get('/api/packages', function(req, res) { res.send(packages); - }); - + }); + packagesRouter.get('/files/test-package-0.1.0.0/.haskell-code-explorer/packageInfo.json', function(req, res) { res.send(testPackage); }); - + packagesRouter.get('/files/test-package-0.1.0.0/.haskell-code-explorer/app%252FMain.hs.json', function(req, res) { res.send(testModuleInfo); }); -- cgit v1.2.3