Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
lint: group modules exports together
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 23, 2016
1 parent e3301a8 commit 4dd4e9c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ var createError = require('http-errors')
var sign = require('cookie-signature').sign
var Tokens = require('csrf')

/**
* Module exports.
* @public
*/

module.exports = csurf

/**
* CSRF protection middleware.
*
Expand All @@ -28,10 +35,10 @@ var Tokens = require('csrf')
*
* @param {Object} options
* @return {Function} middleware
* @api public
* @public
*/

module.exports = function csurf (options) {
function csurf (options) {
var opts = options || {}

// get cookie options
Expand Down

0 comments on commit 4dd4e9c

Please sign in to comment.