Skip to content

feat: move header tags to fix header#18

Merged
hpn777 merged 1 commit intohpn777:masterfrom
remithomas:move_header_tag_to_header
Jan 23, 2025
Merged

feat: move header tags to fix header#18
hpn777 merged 1 commit intohpn777:masterfrom
remithomas:move_header_tag_to_header

Conversation

@remithomas
Copy link
Contributor

No description provided.

@remithomas remithomas force-pushed the move_header_tag_to_header branch 3 times, most recently from 37ece95 to 6269550 Compare January 22, 2025 21:01
src/fixutils.ts Outdated
if (Array.isArray(item)) {
grupToFix(tag, item, headermsgarr)
} else {
headermsgarr.push(tag, '=', item, SOHCHAR)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this check: if (headerFields[tag] !== true) {
directly here so you dont replicate entire statement:
if (Array.isArray(item)) {
grupToFix(tag, item, bodymsgarr)
} else {
bodymsgarr.push(tag, '=', item, SOHCHAR)
}

@remithomas remithomas force-pushed the move_header_tag_to_header branch from 6269550 to 4749a62 Compare January 23, 2025 18:57
@hpn777 hpn777 merged commit 7f1d50c into hpn777:master Jan 23, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants