Skip to content

Commit a2cd4e9

Browse files
committed
Update loop syntax
1 parent ad100d6 commit a2cd4e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/impres.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ async function run() {
6767

6868
console.log('2. Implict Results using node-oracledb ResultSets:');
6969
result = await connection.execute(plsql, [], { resultSet: true });
70-
for (let i = 0; i < result.implicitResults.length; i++) {
71-
console.log(" Implicit Result Set", i + 1);
72-
const rs = result.implicitResults[i];
70+
for (const rs of result.implicitResults) {
71+
console.log(" Implicit Result Set:");
7372
while ((row = await rs.getRow())) {
7473
console.log(" ", row);
7574
}

0 commit comments

Comments
 (0)