mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
116db33497
commit
947aea3167
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user