mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: suppress empty versionScheme warnings
This commit is contained in:
parent
543805e049
commit
b367d8030b
1 changed files with 5 additions and 1 deletions
|
@ -7,9 +7,13 @@ const schemes = {
|
|||
};
|
||||
|
||||
module.exports = function getVersionScheme(versionScheme) {
|
||||
if (!versionScheme) {
|
||||
logger.debug('Missing versionScheme');
|
||||
return semver;
|
||||
}
|
||||
const scheme = schemes[versionScheme];
|
||||
if (!scheme) {
|
||||
logger.warn({ versionScheme }, 'Unknown verion scheme');
|
||||
logger.warn({ versionScheme }, 'Unknown version scheme');
|
||||
return semver;
|
||||
}
|
||||
return scheme;
|
||||
|
|
Loading…
Reference in a new issue