Skip to content

Commit

Permalink
use destructuring assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Feb 20, 2017
1 parent ded6cd7 commit 2276a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
'use strict';

const inspect = require('util').inspect;
const {inspect} = require('util');

const isTypeError = err => err.name === 'TypeError';
const createMessageLine = (msg, err, index) => `${msg}\n ${(index + 1)}. ${err.message}`;
Expand Down

0 comments on commit 2276a69

Please sign in to comment.