cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/6] git commit: removed un-needed undef check
Date Mon, 28 Oct 2013 22:12:17 GMT
removed un-needed undef check


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/9337aa1a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/9337aa1a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/9337aa1a

Branch: refs/heads/dev
Commit: 9337aa1a89eb6fd0382590b7976cac5431557796
Parents: 32e980d
Author: purplecabbage <purplecabbage@gmail.com>
Authored: Mon Sep 30 14:19:42 2013 -0700
Committer: purplecabbage <purplecabbage@gmail.com>
Committed: Thu Oct 3 10:47:04 2013 -0700

----------------------------------------------------------------------
 www/windows8/FileTransferProxy.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/9337aa1a/www/windows8/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/www/windows8/FileTransferProxy.js b/www/windows8/FileTransferProxy.js
index 4ca88fc..6f5c0f9 100644
--- a/www/windows8/FileTransferProxy.js
+++ b/www/windows8/FileTransferProxy.js
@@ -99,12 +99,11 @@ module.exports = {
                 var uri = Windows.Foundation.Uri(source);
                 var downloader = new Windows.Networking.BackgroundTransfer.BackgroundDownloader();
 
-                if (headers) {
-                    for (var header in headers) {
-                        downloader.setRequestHeader(header, headers[header]);
-                    }
+                for (var header in headers) {
+                    downloader.setRequestHeader(header, headers[header]);
                 }
 
+
                 download = downloader.createDownload(uri, storageFile);
                 download.startAsync().then(function () {
                     win(new FileEntry(storageFile.name, storageFile.path));


Mime
View raw message