This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-msbuild_cleanup
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git

commit bd550efdbf3fcac1540401b4672438671c9605a6
Author: Jan Piotrowski <piotrow...@gmail.com>
AuthorDate: Wed Feb 14 19:09:40 2018 +0100

    move method
---
 template/cordova/lib/MSBuildTools.js | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/template/cordova/lib/MSBuildTools.js 
b/template/cordova/lib/MSBuildTools.js
index cfbf4e0..0444ba3 100644
--- a/template/cordova/lib/MSBuildTools.js
+++ b/template/cordova/lib/MSBuildTools.js
@@ -85,17 +85,6 @@ module.exports.findAvailableVersion = function () {
     });
 };
 
-function findAllAvailableVersionsFallBack () {
-    var versions = ['15.0', '14.0', '12.0', '4.0'];
-    events.emit('verbose', 'Searching for available MSBuild versions...');
-
-    return Q.all(versions.map(checkMSBuildVersion)).then(function 
(unprocessedResults) {
-        return unprocessedResults.filter(function (item) {
-            return !!item;
-        });
-    });
-}
-
 // build.js -> run()
 // check_reqs.js -> checkMSBuild()
 module.exports.findAllAvailableVersions = function () {
@@ -113,6 +102,17 @@ module.exports.findAllAvailableVersions = function () {
     return findAllAvailableVersionsFallBack();
 };
 
+function findAllAvailableVersionsFallBack () {
+    var versions = ['15.0', '14.0', '12.0', '4.0'];
+    events.emit('verbose', 'Searching for available MSBuild versions...');
+
+    return Q.all(versions.map(checkMSBuildVersion)).then(function 
(unprocessedResults) {
+        return unprocessedResults.filter(function (item) {
+            return !!item;
+        });
+    });
+}
+
 /**
  * Gets MSBuildTools instance for user-specified location
  *

-- 
To stop receiving notification emails like this one, please contact
jan...@apache.org.

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

Reply via email to