Bug 1383058 - Fix ESLint bustage from the Beta uplift. a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 24 Aug 2017 13:05:44 -0400
changeset 423777 46ddc20f721b9e1e81dcf14c715ae0b391af95d3
parent 423776 cca21a0803560594ced917d364027ec0b65a07ee
child 423778 cf978cdc73138c2b11372a5ac5ad3eae6872630f
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1383058
milestone56.0
Bug 1383058 - Fix ESLint bustage from the Beta uplift. a=bustage
browser/extensions/formautofill/FormAutofillHeuristics.jsm
--- a/browser/extensions/formautofill/FormAutofillHeuristics.jsm
+++ b/browser/extensions/formautofill/FormAutofillHeuristics.jsm
@@ -399,19 +399,19 @@ this.FormAutofillHeuristics = {
       // If there is no any field parsed, the parsing cursor can be moved
       // forward to the next one.
       if (!parsedPhoneFields && !parsedAddressFields) {
         fieldScanner.parsingIndex++;
       }
     }
     if (allowDuplicates) {
       return fieldScanner.fieldDetails;
-    } else {
-      return fieldScanner.trimmedFieldDetail;
     }
+
+     return fieldScanner.trimmedFieldDetail;
   },
 
   getInfo(element) {
     if (!FormAutofillUtils.isFieldEligibleForAutofill(element)) {
       return null;
     }
 
     let info = element.getAutocompleteInfo();