Skip to content

Commit

Permalink
Change for..in to for..of
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurhsmelo committed Jan 6, 2022
1 parent a936702 commit 1b8e4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/report/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require('dotenv').config({ path: path.resolve(__dirname, '.env') })

var report = {}
async function updateReport(products) {
for(let product in products) {
for(let product of products) {
if(!product.name) {
continue
} else if(!report[product.name]) {
Expand Down

0 comments on commit 1b8e4c3

Please sign in to comment.