Skip to content

Commit

Permalink
Format code (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Mar 5, 2019
1 parent 0db7859 commit b9a648c
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/dialects/oracle/index.js
Expand Up @@ -79,19 +79,16 @@ assign(Client_Oracle.prototype, {
// connection needs to be added to the pool.
acquireRawConnection() {
return new Promise((resolver, rejecter) => {
this.driver.connect(
this.connectionSettings,
(err, connection) => {
if (err) return rejecter(err);
Promise.promisifyAll(connection);
if (this.connectionSettings.prefetchRowCount) {
connection.setPrefetchRowCount(
this.connectionSettings.prefetchRowCount
);
}
resolver(connection);
this.driver.connect(this.connectionSettings, (err, connection) => {
if (err) return rejecter(err);
Promise.promisifyAll(connection);
if (this.connectionSettings.prefetchRowCount) {
connection.setPrefetchRowCount(
this.connectionSettings.prefetchRowCount
);
}
);
resolver(connection);
});
});
},

Expand Down

0 comments on commit b9a648c

Please sign in to comment.