From 788dba67f32f7b8cd0219890fe0381989c0b7d74 Mon Sep 17 00:00:00 2001 From: Joseph Canero Date: Tue, 3 Oct 2017 19:07:18 -0400 Subject: [PATCH] minor formatting updates --- src/serve_style.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/serve_style.js b/src/serve_style.js index cb6d03c..6a4f777 100644 --- a/src/serve_style.js +++ b/src/serve_style.js @@ -53,9 +53,9 @@ module.exports = function(options, repo, params, id, reportTiles, reportFont) { if (styleJSON.sprite && !httpTester.test(styleJSON.sprite)) { spritePath = path.join(options.paths.sprites, styleJSON.sprite - .replace('{style}', path.basename(styleFile, '.json')) - .replace('{styleJsonFolder}', path.relative(options.paths.sprites, path.dirname(styleFile))) - ); + .replace('{style}', path.basename(styleFile, '.json')) + .replace('{styleJsonFolder}', path.relative(options.paths.sprites, path.dirname(styleFile))) + ); styleJSON.sprite = 'local://styles/' + id + '/sprite'; } if (styleJSON.glyphs && !httpTester.test(styleJSON.glyphs)) { @@ -131,7 +131,7 @@ module.exports = function(options, repo, params, id, reportTiles, reportFont) { }); app.get('/' + id + '/sprite:scale(@[23]x)?\.:format([\\w]+)', - function (req, res, next) { + function(req, res, next) { if (!spritePath) { return res.status(404).send('File not found'); }