Bug 1378683 - Remove a useless continue; declaration r?jkew draft
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 06 Jul 2017 10:15:34 +0200
changeset 604657 28b08caae2912e66b5093caa50ed5bc4d715a30e
parent 604656 092dbb1110ffdaefc3baac8c119ca77a2c925373
child 636259 13a3a425d4c025934b6e5acb8292dd1a13bce2f2
push id67152
push userbmo:sledru@mozilla.com
push dateThu, 06 Jul 2017 08:16:26 +0000
reviewersjkew
bugs1378683
milestone56.0a1
Bug 1378683 - Remove a useless continue; declaration r?jkew MozReview-Commit-ID: 2IOCtnfa4k1
intl/unicharutil/nsUnicodeNormalizer_ICU.cpp
--- a/intl/unicharutil/nsUnicodeNormalizer_ICU.cpp
+++ b/intl/unicharutil/nsUnicodeNormalizer_ICU.cpp
@@ -36,17 +36,16 @@ DoNormalization(const UNormalizer2* aNor
     if (U_SUCCESS(errorCode)) {
       aDest.SetLength(len);
       break;
     }
     if (errorCode == U_BUFFER_OVERFLOW_ERROR) {
       // Buffer wasn't big enough; adjust to the reported size and try again.
       capacity = len;
       errorCode = U_ZERO_ERROR;
-      continue;
     }
   } while (false);
   return ICUUtils::UErrorToNsResult(errorCode);
 }
 
 nsresult
 nsUnicodeNormalizer::NormalizeUnicodeNFD(const nsAString& aSrc,
                                          nsAString& aDest)