Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Use for..of instead of for-loop
Browse files Browse the repository at this point in the history
Addresses selector/documentMetadata.js comment 1

#2471 (comment)
  • Loading branch information
jaredhirsch authored and ianb committed Apr 7, 2017
1 parent fb81559 commit db3280e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/webextension/selector/documentMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ var documentMetadata = (function () {
let value;
if (elems.length > 1) {
value = [];
for (let i=0; i<elems.length; i++) {
let v = elems[i].getAttribute("content");
for (let elem of elems) {
let v = elem.getAttribute("content");
if (v) {
value.push(v);
}
Expand Down

0 comments on commit db3280e

Please # to comment.