Skip to content

Commit

Permalink
Update apps/server/src/headerstoRecords.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
drazisil and coderabbitai[bot] committed Jul 26, 2024
1 parent 712c3f8 commit f4fba4a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/server/src/headerstoRecords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ export function headerstoRecords(
for (const [key, value] of Object.entries(headers)) {
if (Array.isArray(value)) {
result[key] = value.join(", ");

Check warning on line 7 in apps/server/src/headerstoRecords.ts

View check run for this annotation

Codecov / codecov/patch

apps/server/src/headerstoRecords.ts#L7

Added line #L7 was not covered by tests
} else {
if (typeof key === "string" && typeof value === "string") {
result[key] = value;
}
} else if (typeof key === "string" && typeof value === "string") {
result[key] = value;
}
}
return result;
Expand Down

0 comments on commit f4fba4a

Please sign in to comment.