Skip to content

Commit

Permalink
fix: remove unused versioning fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Apr 5, 2020
1 parent f8a20d8 commit 5bb907f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/datasource/index.ts
Expand Up @@ -11,7 +11,6 @@ import {
GetReleasesConfig,
GetPkgReleasesConfig,
} from './common';
import * as semverVersioning from '../versioning/semver';
import datasources from './api.generated';

export * from './common';
Expand Down Expand Up @@ -85,10 +84,8 @@ export async function getPkgReleases(
if (!res) {
return res;
}
const versioning =
config && config.versioning ? config.versioning : semverVersioning.id;
// Filter by versioning
const version = allVersioning.get(versioning);
const version = allVersioning.get(config.versioning);
// Return a sorted list of valid Versions
function sortReleases(release1: Release, release2: Release): number {
return version.sortVersions(release1.version, release2.version);
Expand Down

0 comments on commit 5bb907f

Please sign in to comment.