diff --git a/Tools/release-android.js b/Tools/release-android.js index de419e5dc..ccecc195c 100644 --- a/Tools/release-android.js +++ b/Tools/release-android.js @@ -35,7 +35,7 @@ function increaseGradleVersionCode(content) { function increaseGradleVersionName(content) { const newContent = content.replace(/(versionName\s+"\d+?\.\d+?\.)(\d+)"/, function(match, prefix, buildNum) { const n = Number(buildNum); - if (isNaN(n) || !n) throw new Error(`Invalid version code: ${buildNum}`); + if (isNaN(n)) throw new Error(`Invalid version code: ${buildNum}`); return `${prefix + (n + 1)}"`; });