Bug 822446: Add parens around assignment-used-as-loop-condition in nsPlacesAutoComplete.js and nsPlacesExpiration.js, to fix JS strict warning "test for equality mistyped as assignment". r=mak

This commit is contained in:
Daniel Holbert 2012-12-17 22:23:05 -08:00
parent 116db33497
commit 947aea3167
2 changed files with 2 additions and 2 deletions

View File

@ -624,7 +624,7 @@ nsPlacesAutoComplete.prototype = {
handleResult: function PAC_handleResult(aResultSet)
{
let row, haveMatches = false;
while (row = aResultSet.getNextRow()) {
while ((row = aResultSet.getNextRow())) {
let match = this._processRow(row);
haveMatches = haveMatches || match;

View File

@ -619,7 +619,7 @@ nsPlacesExpiration.prototype = {
return;
let row;
while (row = aResultSet.getNextRow()) {
while ((row = aResultSet.getNextRow())) {
if (!("_expectedResultsCount" in this))
this._expectedResultsCount = row.getResultByName("expected_results");
if (this._expectedResultsCount > 0)