cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject git commit: CB-5365 Remove unused exception var to prevent warnings?
Date Tue, 04 Feb 2014 23:23:23 GMT
Updated Branches:
  refs/heads/dev be4419406 -> d3b21b35f


CB-5365 Remove unused exception var to prevent warnings?


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/d3b21b35
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/d3b21b35
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/d3b21b35

Branch: refs/heads/dev
Commit: d3b21b35fc7b3c7b38a8285a688d527578753f05
Parents: be44194
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Feb 4 15:23:02 2014 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Feb 4 15:23:02 2014 -0800

----------------------------------------------------------------------
 src/wp/FileTransfer.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/d3b21b35/src/wp/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs
index 8b03d85..f9fe3fe 100644
--- a/src/wp/FileTransfer.cs
+++ b/src/wp/FileTransfer.cs
@@ -306,7 +306,7 @@ namespace WPCordovaClassLib.Cordova.Commands
 
                 webRequest.BeginGetRequestStream(uploadCallback, reqState);
             }
-            catch (Exception ex)
+            catch (Exception /*ex*/)
             {
 
                 DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, new FileTransferError(ConnectionError)),callbackId);
@@ -468,7 +468,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                     webRequest = (HttpWebRequest)WebRequest.Create(downloadOptions.Url);
                 }
             }
-            catch (Exception ex)
+            catch (Exception /*ex*/)
             {
                 DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR,
                                       new FileTransferError(InvalidUrlError, downloadOptions.Url,
null, 0)));
@@ -794,7 +794,7 @@ namespace WPCordovaClassLib.Cordova.Commands
 
                 webRequest.BeginGetResponse(ReadCallback, reqState);
             }
-            catch (Exception ex)
+            catch (Exception /*ex*/)
             {
                 if (!reqState.isCancelled)
                 {
@@ -853,7 +853,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                                           reqState.options.CallbackId);
                 }
             }
-            catch (Exception ex)
+            catch (Exception /*ex*/)
             {
                 FileTransferError transferError = new FileTransferError(ConnectionError,
reqState.options.Server, reqState.options.FilePath, 403);
                 DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, transferError),
reqState.options.CallbackId);


Mime
View raw message