From d3cd69ae47e83c610392c276e9e02357e0b740eb Mon Sep 17 00:00:00 2001 From: Nathan Woltman Date: Wed, 12 Jun 2019 14:10:44 -0400 Subject: [PATCH] perf: remove outdated array pattern closes #43 --- HISTORY.md | 5 +++++ lib/SqlString.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index e2c7e51..e99dbec 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,8 @@ +unreleased +========== + + * perf: remove outdated array pattern + 2.3.1 / 2018-02-24 ================== diff --git a/lib/SqlString.js b/lib/SqlString.js index 419adec..4567bfa 100644 --- a/lib/SqlString.js +++ b/lib/SqlString.js @@ -78,7 +78,7 @@ SqlString.format = function format(sql, values, stringifyObjects, timeZone) { return sql; } - if (!(values instanceof Array || Array.isArray(values))) { + if (!Array.isArray(values)) { values = [values]; }