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

Commit ce48bfe

Browse files
author
Axel Rindle
committed
Simplify for loop
1 parent 14a6f2d commit ce48bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const rest = (options, callback) => {
7171
// Compare versions
7272
let found = false;
7373
let version = null;
74-
for (i = 0, len = json.length; i < len; i++) {
74+
for (let i = 0; i < json.length; i++) {
7575
version = json[i];
7676
if (semver.gt(version.tag_name, options.currentVersion)) {
7777
found = true;

0 commit comments

Comments
 (0)