Skip to content

Commit

Permalink
linting error cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwinton committed Aug 31, 2017
1 parent d5fb6d7 commit 66c9726
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
1 change: 0 additions & 1 deletion lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const _ = require('lodash'),
flash = require('express-flash'),
responses = require('./responses'),
handlebars = require('handlebars'),
sites = require('./services/sites'),
basicAuth = require('basic-auth'),
fs = require('fs'),
path = require('path'),
Expand Down
10 changes: 5 additions & 5 deletions lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,8 @@ function addSiteController(router, site, providers) {

/**
* @param {express.Router} router
* @param {array} providers
* @param {object} sessionStore
* @param {object} site
* @param {Object} options
* @param {Object} site
*/
function addSite(router, { providers, sessionStore, cacheControl = {} }, site) {
site = _.defaults(site, { path: '/' }); // If path isn't explicitly set, set it.
Expand Down Expand Up @@ -327,8 +326,9 @@ function addHost(options) {

/**
* @param {express.Router} router Often an express app.
* @param {array} [providers]
* @param {object} [sessionStore]
* @param {Array} [providers]
* @param {Object} [sessionStore]
* @param {Object} [cacheControl]
* @returns {*}
* @example
* var app = express();
Expand Down
5 changes: 1 addition & 4 deletions lib/routes/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ const _ = require('lodash'),
files = require('../files'),
queryStringOptions = ['ignore-data'],
{ withAuthLevel, authLevels } = require('../auth'),
controller = require('../services/components'),
acceptedExtensions = {
json: 'application/json'
};
controller = require('../services/components');

let validation, route;

Expand Down
5 changes: 1 addition & 4 deletions test/api/render/index.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
'use strict';

const _ = require('lodash'),
expect = require('chai').expect,
sinon = require('sinon'),
const sinon = require('sinon'),
render = require('../../../lib/render'),
responses = require('../../../lib/responses'),
componentsRoutes = require('../../../lib/routes/components'),
pagesRoutes = require('../../../lib/routes/pages');

Expand Down

0 comments on commit 66c9726

Please sign in to comment.