Bug 1025340 - Declare encType variable in toolkit/components/storage-mozStorage.js. r=MattN
authoraceman <acelists@atlas.sk>
Fri, 13 Jun 2014 16:37:00 -0400
changeset 188943 9d948f572d49cfb7821a4205eff43fd7baaaea38
parent 188942 0f60e633f247a026be70b64733b1adc3912561a7
child 188944 85ae65b5aec985e85e6da162e0d7fe3a4511b913
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersMattN
bugs1025340
milestone33.0a1
Bug 1025340 - Declare encType variable in toolkit/components/storage-mozStorage.js. r=MattN
toolkit/components/passwordmgr/storage-mozStorage.js
--- a/toolkit/components/passwordmgr/storage-mozStorage.js
+++ b/toolkit/components/passwordmgr/storage-mozStorage.js
@@ -236,22 +236,20 @@ LoginManagerStorage_mozStorage.prototype
     },
 
 
     /*
      * addLogin
      *
      */
     addLogin : function (login) {
-        let encUsername, encPassword;
-
         // Throws if there are bogus values.
         LoginHelper.checkLoginValues(login);
 
-        [encUsername, encPassword, encType] = this._encryptLogin(login);
+        let [encUsername, encPassword, encType] = this._encryptLogin(login);
 
         // Clone the login, so we don't modify the caller's object.
         let loginClone = login.clone();
 
         // Initialize the nsILoginMetaInfo fields, unless the caller gave us values
         loginClone.QueryInterface(Ci.nsILoginMetaInfo);
         if (loginClone.guid) {
             if (!this._isGuidUnique(loginClone.guid))