Skip to content

Commit d3cd69a

Browse files
nwoltmandougwilson
authored andcommitted
perf: remove outdated array pattern
closes #43
1 parent acc02c4 commit d3cd69a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

HISTORY.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
unreleased
2+
==========
3+
4+
* perf: remove outdated array pattern
5+
16
2.3.1 / 2018-02-24
27
==================
38

lib/SqlString.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ SqlString.format = function format(sql, values, stringifyObjects, timeZone) {
7878
return sql;
7979
}
8080

81-
if (!(values instanceof Array || Array.isArray(values))) {
81+
if (!Array.isArray(values)) {
8282
values = [values];
8383
}
8484

0 commit comments

Comments
 (0)