Skip to content

Commit f754c1b

Browse files
committed
Minor optimization: use foreach rather than map
1 parent 25892ec commit f754c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresql-async/src/main/scala/com/github/mauricio/async/db/postgresql/PostgreSQLConnection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class PostgreSQLConnection
177177
this.connectionFuture.trySuccess(this)
178178

179179
this.recentError = false
180-
queryResult.map(this.succeedQueryPromise)
180+
queryResult.foreach(this.succeedQueryPromise)
181181
}
182182

183183
override def onError(m: ErrorMessage) {

0 commit comments

Comments
 (0)