You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type check for the key in the headersToRecords function is unnecessary since keys from Object.entries will always be strings. The condition typeof key === "string" can be removed.
File:apps/server/src/headersToRecords.ts Current Code:
The type check for the key in the
headersToRecords
function is unnecessary since keys fromObject.entries
will always be strings. The conditiontypeof key === "string"
can be removed.File:
apps/server/src/headersToRecords.ts
Current Code:
Suggested Change:
This change will simplify the code and remove the redundant type check.
The text was updated successfully, but these errors were encountered: