Skip to content

Commit 76bbe37

Browse files
committed
style
1 parent 7d7ca02 commit 76bbe37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/pg/lib/result.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict'
22

3-
var types = require('pg-types')
3+
const types = require('pg-types')
44

5-
var matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/
5+
const MatchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/
66

77
let parserCache = new Map()
88

@@ -29,7 +29,7 @@ class Result {
2929

3030
// adds a command complete message
3131
addCommandComplete(msg) {
32-
var match = matchRegexp.exec(msg.text ?? msg.command)
32+
const match = MatchRegexp.exec(msg.text ?? msg.command)
3333
if (!match) return
3434
this.command = match[1]
3535
if (match[3]) {

0 commit comments

Comments
 (0)