[Pkg-privacy-commits] [torbrowser-launcher] 22/476: as per gnome best practices, I'm using let instead of var

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit 1ac87c0de3894bf683194f4dc12ac585dde62014
Author: Micah Lee <micahflee at riseup.net>
Date:   Tue Feb 12 20:13:01 2013 -0800

    as per gnome best practices, I'm using let instead of var
---
 src/torbrowser-launcher | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/torbrowser-launcher b/src/torbrowser-launcher
index 13d2dcd..df73810 100755
--- a/src/torbrowser-launcher
+++ b/src/torbrowser-launcher
@@ -248,11 +248,11 @@ const TorBrowserLauncher = new Lang.Class({
             return ''+mb+'mb';
           }
 
-          var total_size;
-          var bytes_so_far = 0;
+          let total_size;
+          let bytes_so_far = 0;
 
           // create an http message
-          var request = Soup.Message.new('GET', this._tarball_url);
+          let request = Soup.Message.new('GET', this._tarball_url);
 
           // grab the content-length from the headers
           request.connect('got_headers', Lang.bind(this, function(message){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list