Skip to content

Commit

Permalink
Remove unused sortTags syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed May 23, 2021
1 parent 26e7d9c commit 1b29530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const fetchTags = async (options, remote) => {
.split('\n')
.map(parseTag(options))
.filter(isValidTag(options))
.sort(sortTags(options))
.sort(sortTags)

const { latestVersion, unreleased, unreleasedOnly, getCompareLink } = options
if (latestVersion || unreleased || unreleasedOnly) {
Expand Down Expand Up @@ -87,7 +87,7 @@ const isValidTag = ({ tagPattern }) => ({ tag, version }) => {
return semver.valid(version)
}

const sortTags = ({ tagPrefix }) => ({ version: a }, { version: b }) => {
const sortTags = ({ version: a }, { version: b }) => {
if (semver.valid(a) && semver.valid(b)) {
return semver.rcompare(a, b)
}
Expand Down

0 comments on commit 1b29530

Please sign in to comment.