Skip to content

Commit c0e8bfa

Browse files
authored
fix: review
1 parent 7f52b4f commit c0e8bfa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/pg/lib/utils.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ function arrayString(val) {
4545
// note: you can override this function to provide your own conversion mechanism
4646
// for complex types, etc...
4747
var prepareValue = function (val, seen) {
48-
if (typeof val === 'object' || typeof val === 'undefined') {
49-
// null and undefined are both null for postgres
50-
if (val == null) {
51-
return null
52-
}
48+
// null and undefined are both null for postgres
49+
if (val == null) {
50+
return null
51+
}
52+
if (typeof val === 'object') {
5353
if (val instanceof Buffer) {
5454
return val
5555
}

0 commit comments

Comments
 (0)