Skip to content

Commit 48d056c

Browse files
committed
Fix general.js
1 parent cc50a61 commit 48d056c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/general.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ const path = require("path");
259259
// since the raw contents of the commit object will be cached in memory
260260

261261
async function walk() {
262+
let oid;
262263
try {
263-
const oid = await revWalk.next();
264+
oid = await revWalk.next();
264265
} catch(error) {
265266
if (error.errno !== nodegit.Error.CODE.ITEROVER) {
266267
throw error;

0 commit comments

Comments
 (0)