You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/12/05 01:09:58 UTC

git commit: CB-5360 fix compiler warnings

Updated Branches:
  refs/heads/3.3.x [created] 15b25ccb3


CB-5360 fix compiler warnings


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/15b25ccb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/15b25ccb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/15b25ccb

Branch: refs/heads/3.3.x
Commit: 15b25ccb316ab857d0c38e4fa50702ac137a38a7
Parents: 4ea5ef8
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Dec 4 16:07:56 2013 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Dec 4 16:07:56 2013 -0800

----------------------------------------------------------------------
 .../lib/CordovaDeploy/CordovaDeploy/Program.cs        | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/15b25ccb/wp8/template/cordova/lib/CordovaDeploy/CordovaDeploy/Program.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/CordovaDeploy/CordovaDeploy/Program.cs b/wp8/template/cordova/lib/CordovaDeploy/CordovaDeploy/Program.cs
index c7e5e74..8b3e816 100644
--- a/wp8/template/cordova/lib/CordovaDeploy/CordovaDeploy/Program.cs
+++ b/wp8/template/cordova/lib/CordovaDeploy/CordovaDeploy/Program.cs
@@ -173,12 +173,18 @@ namespace CordovaDeploy
                 return;
             }
 
-            try {
+            try 
+            {
                 xapFilePath = Directory.GetFiles(root + @"\Bin\Debug", "*.xap").FirstOrDefault();
-            } catch (DirectoryNotFoundException e) {
-                try {
+            } 
+            catch (DirectoryNotFoundException) 
+            {
+                try 
+                {
                     xapFilePath = Directory.GetFiles(root + @"\Bin\Release", "*.xap").FirstOrDefault();
-                } catch (DirectoryNotFoundException ex) {
+                } 
+                catch (DirectoryNotFoundException) 
+                {
                     Log(string.Format("Error: could not find project build directoy in {0}", root), true);
                     Log("make sure your app has been successfully built before deploying.", true);
                 }