Skip to content

Commit 2dc12dd

Browse files
committed
merge change in user #318
1 parent 3930da9 commit 2dc12dd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/pool.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const poolModule = (() => {
102102
}
103103

104104
getQueryId () {
105-
return this.queryObj != null ? this.queryObj : -1
105+
return this.queryObj ?? -1
106106
}
107107

108108
isPendingCancel () {
@@ -375,7 +375,7 @@ const poolModule = (() => {
375375
if (closed) {
376376
return
377377
}
378-
grow().then(() => {
378+
void grow().then(() => {
379379
promotePause()
380380
while (workQueue.length > 0 && idle.length > 0) {
381381
const work = workQueue.pop()
@@ -688,7 +688,7 @@ const poolModule = (() => {
688688
const promisedClose = description.connection.promises.close()
689689
toPromise.push(promisedClose)
690690
}
691-
Promise.all(toPromise).then(() => {
691+
void Promise.all(toPromise).then(() => {
692692
clientPromises.open(options.connectionString).then(conn => {
693693
description.recreate(conn)
694694
checkin('recreate', description)

lib/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const userModule = ((() => {
9292
}
9393

9494
parse (s) {
95-
if (!this.parseHHMMSS(s) && !this.parseMMSS(s) && !this.parseSS(s)) {
96-
this.value = s
95+
if (!this.parseHHMMSS(s) && !this.parseMMSS(s) /* && !this.parseSS(s) */) {
96+
this.value = (typeof s === 'string') ? new Date(s) : s
9797
}
9898
}
9999

0 commit comments

Comments
 (0)