Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 5714056

Browse files
author
Axel Rindle
committed
Fix #6
1 parent e577096 commit 5714056

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/check.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ const rest = (options, callback) => {
7070
}
7171
// Compare versions
7272
let found = false;
73+
let version = null;
7374
for (i = 0, len = json.length; i < len; i++) {
74-
let version = json[i];
75+
version = json[i];
7576
if (semver.gt(version.tag_name, options.currentVersion)) {
7677
found = true;
7778
break;

0 commit comments

Comments
 (0)