Fix assignment to a const error

This commit is contained in:
koeneijkemans 2020-07-05 09:52:49 +02:00
parent ff65870724
commit 7428f3af26

View File

@ -38,15 +38,15 @@ function extractVersion(branch) {
const regexp = /([0-9]\.[0-9]\.[0-9])|([0-9]\.[0-9])|([0-9])/g; const regexp = /([0-9]\.[0-9]\.[0-9])|([0-9]\.[0-9])|([0-9])/g;
const matches = branch.match(regexp); const matches = branch.match(regexp);
const versions = null; var versions = null;
if (matches) { if (matches) {
const version = matches.shift(); const version = matches.shift();
var versionParts = version.split('.'); const versionParts = version.split('.');
var major = versionParts[0]; const major = versionParts[0];
var minor = versionParts.length >= 2 ? versionParts[1] : null; const minor = versionParts.length >= 2 ? versionParts[1] : null;
var patch = versionParts.length >= 3 ? versionParts[2] : null; const patch = versionParts.length >= 3 ? versionParts[2] : null;
versions = { versions = {
version: version, version: version,