[Pkg-mozext-commits] [personasplus] 32/42: Remove let-block usage

David Prévot taffit at moszumanska.debian.org
Wed Feb 3 16:15:41 UTC 2016


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

taffit pushed a commit to branch master
in repository personasplus.

commit 958c514dd4de92e91311b51d703033a4210b9e53
Author: Andreas Wagner <mail at andreaswagner.org>
Date:   Wed Jan 27 18:30:56 2016 +0100

    Remove let-block usage
---
 extension/modules/service.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/extension/modules/service.js b/extension/modules/service.js
index d2f62e9..3911f7e 100644
--- a/extension/modules/service.js
+++ b/extension/modules/service.js
@@ -1440,11 +1440,10 @@ let FileUtils = {
             createInstance(Ci.nsIConverterInputStream);
         cstream.init(fstream, "UTF-8", 0, 0);
 
-        let (str = {}) {
-          // read the whole file
-          while (cstream.readString(-1, str))
-            data += str.value;
-        }
+        let str = {};
+        // read the whole file
+        while (cstream.readString(-1, str))
+          data += str.value;
         cstream.close(); // this also closes fstream
       }
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/personasplus.git



More information about the Pkg-mozext-commits mailing list