Repository: cordova-coho
Updated Branches:
  refs/heads/master 6f57d6dc9 -> 2fb8df07d


CB-7904 Remove zero-padding to make version fully semver-compatible


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/2fb8df07
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/2fb8df07
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/2fb8df07

Branch: refs/heads/master
Commit: 2fb8df07d427d2a50604564bf52c619d0b7b3622
Parents: 6f57d6d
Author: daserge <v-ses...@microsoft.com>
Authored: Fri May 13 18:04:17 2016 +0300
Committer: daserge <v-ses...@microsoft.com>
Committed: Fri May 13 18:04:17 2016 +0300

----------------------------------------------------------------------
 src/nightly.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/2fb8df07/src/nightly.js
----------------------------------------------------------------------
diff --git a/src/nightly.js b/src/nightly.js
index e69328f..bcec1d4 100644
--- a/src/nightly.js
+++ b/src/nightly.js
@@ -32,13 +32,6 @@ var path = require('path');
 var npmlink = require('./npm-link');
 var repoclone = require('./repo-clone');
 
-function pad(number) {
-    if (number < 10) {
-        return '0' + number;
-    }
-    return number;
-}
-
 module.exports = function*(argv) {
     var repos = flagutil.computeReposFromFlag('tools');
     var cli = repoutil.getRepoById('cli');
@@ -81,7 +74,7 @@ module.exports = function*(argv) {
 
     var currentDate = new Date();
     var nightlyVersion = '-nightly.' + currentDate.getFullYear() + '.' +
-                        pad(currentDate.getMonth() + 1) + '.' + 
pad(currentDate.getDate());
+        (currentDate.getMonth() + 1) + '.' + currentDate.getDate();
     var cordovaLibVersion;
     //update package.json version for cli + lib, update lib reference for cli
     yield repoutil.forEachRepo([cordovaLib, cli], function*(repo) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to