Skip to content

Commit 07c9b6a

Browse files
authored
chore: remove useless comment
1 parent 94bc92a commit 07c9b6a

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

packages/pg/lib/native/query.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ NativeQuery.prototype.submit = function (client) {
137137

138138
// check if the client has already executed this named query
139139
// if so...just execute it again - skip the planning phase
140-
// check for undefined, not falsy: the text can be empty
141140
if (client.namedQueries[this.name] !== undefined) {
142141
if (this.text && client.namedQueries[this.name] !== this.text) {
143142
const err = new Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`)

packages/pg/lib/query.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ class Query extends EventEmitter {
183183
}
184184

185185
hasBeenParsed(connection) {
186-
// check for undefined, not falsy: the text can be empty
187186
return (
188187
this.name &&
189188
(connection.parsedStatements[this.name] !== undefined ||

0 commit comments

Comments
 (0)