Skip to content

Commit

Permalink
Merge c2898b1 into 0fa2d9f
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Aug 1, 2020
2 parents 0fa2d9f + c2898b1 commit 12e1c0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.js
@@ -1,7 +1,6 @@
'use strict';

var util = require('util');
var isArrayish = require('is-arrayish');

var errorEx = function errorEx(name, properties) {
if (!name || name.constructor !== String) {
Expand Down Expand Up @@ -38,7 +37,7 @@ var errorEx = function errorEx(name, properties) {

if ('message' in modifier) {
newMessage = modifier.message(this[key], newMessage) || newMessage;
if (!isArrayish(newMessage)) {
if (!Array.isArray(newMessage)) {
newMessage = [newMessage];
}
}
Expand Down
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -40,7 +40,5 @@
"should": "^7.0.1",
"xo": "^0.7.1"
},
"dependencies": {
"is-arrayish": "^0.2.1"
}
"dependencies": {}
}

0 comments on commit 12e1c0c

Please sign in to comment.