Update syntax for for..in loop

This commit is contained in:
kozbial
2021-07-27 15:17:11 -07:00
committed by Monica Kozbial
parent 8056bf0484
commit 284d68be80

View File

@@ -149,7 +149,7 @@ Warning.prototype.setText = function(text, id) {
*/
Warning.prototype.getText = function() {
const allWarnings = [];
for (let id in this.text_) {
for (const id in this.text_) {
allWarnings.push(this.text_[id]);
}
return allWarnings.join('\n');