Skip to content

Commit

Permalink
fix: change incorrect for...in to for...of
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 authored Dec 15, 2024
1 parent da73b7e commit 65e0035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function emailHandler(
const receivedDate = new Date();
const toAddresses = session.envelope.rcptTo.map((address) => address.address);

for (const address in toAddresses) {
for (const address of toAddresses) {
const toDomain = address.split('@')[1];

let action = config.domains.defaultAction;
Expand Down

0 comments on commit 65e0035

Please sign in to comment.