- formatting adjustment

This commit is contained in:
Mike Penz
2020-10-19 18:56:26 +02:00
parent a048bfac80
commit 4ad1d585c9
+2 -2
View File
@@ -1,6 +1,6 @@
import {Octokit, RestEndpointMethodTypes} from '@octokit/rest' import {Octokit, RestEndpointMethodTypes} from '@octokit/rest'
import * as core from '@actions/core' import * as core from '@actions/core'
import { SemVer } from 'semver' import {SemVer} from 'semver'
export interface TagInfo { export interface TagInfo {
name: string name: string
@@ -93,7 +93,7 @@ export class Tags {
2020.3.1-a01 2020.3.1-a01
2020.3.0 2020.3.0
*/ */
export function sortTags(tags: TagInfo[]): TagInfo[] { export function sortTags(tags: TagInfo[]): TagInfo[] {
tags.sort((b, a) => { tags.sort((b, a) => {
return new SemVer(a.name).compare(b.name) return new SemVer(a.name).compare(b.name)
}) })