Skip to content

Commit

Permalink
One yypo (my bad) and some other non-standard stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
aichholzer committed May 18, 2018
1 parent a292f6b commit 0a3bdbd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions benchmark-bench.js
Expand Up @@ -50,9 +50,9 @@ function select (callback) {
}
}
])
.then(function (answers) {
callback(answers.list)
})
.then(function (answers) {
callback(answers.list)
})
}

inquirer.prompt([
Expand Down
2 changes: 1 addition & 1 deletion benchmark-compare.js
Expand Up @@ -3,7 +3,7 @@

const inquirer = require('inquirer')
const chalk = require('chalk')
const Table = require('cli-table');
const Table = require('cli-table')
const { join } = require('path')
const { readdirSync, readFileSync } = require('fs')
const { compare } = require('./lib/autocannon')
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/@leizm-web.js
@@ -1,8 +1,8 @@
'use strict'

const Connect = require('@leizm/web').Connect;
const Connect = require('@leizm/web').Connect

const app = new Connect();
const app = new Connect()

app.use('/', function (ctx) {
ctx.response.json({ hello: 'world' })
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/trek-engine-router.js
Expand Up @@ -23,7 +23,7 @@ app.use(async ctx => {
app.on('error', err => {
assert(err instanceof Error, `non-error thrown: ${err}`)

if (404 == err.status || err.expose) return
if (err.status === 404 || err.expose) return

const msg = err.stack || err.toString()
console.error()
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/trek-engine.js
Expand Up @@ -12,7 +12,7 @@ app.use(async function ({ res }) {
app.on('error', err => {
assert(err instanceof Error, `non-error thrown: ${err}`)

if (404 == err.status || err.expose) return
if (err.status === 404 || err.expose) return

const msg = err.stack || err.toString()
console.error()
Expand Down

0 comments on commit 0a3bdbd

Please sign in to comment.