Skip to content

Commit

Permalink
Fix mispelling variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mindsers committed Jun 14, 2022
1 parent 902f583 commit 91de3bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports.main = async function main() {
const linkList = getLinks(rawData)
const versions = getEntries(rawData).map(parseEntry).map(addLinks(linkList))

core.debug(`${entries.length} version logs found`)
core.debug(`${versions.length} version logs found`)
core.endGroup()

// Validate data
Expand All @@ -41,7 +41,7 @@ exports.main = async function main() {
if (validationLevel !== 'none') {
const validationDepth = parseInt(core.getInput('validation_depth'), 10)

entries
versions
.filter(version => version.status != 'unreleased')
.reverse()
.slice(Math.max(0, releasedVersions.length - validationDepth))
Expand All @@ -50,7 +50,7 @@ exports.main = async function main() {
core.endGroup()

// Return data
const entry = getEntryByVersionID(entries, targetVersion)
const entry = getEntryByVersionID(versions, targetVersion)

if (entry == null) {
throw new Error(
Expand Down

0 comments on commit 91de3bd

Please sign in to comment.