Skip to content

Handle additional types in ztypeName (#328) (cherry-pick from main) - #332

Merged
ktarbet merged 1 commit into
masterfrom
cherry-pick-type-names
Nov 6, 2025
Merged

Handle additional types in ztypeName (#328) (cherry-pick from main)#332
ktarbet merged 1 commit into
masterfrom
cherry-pick-type-names

Conversation

@ktarbet

@ktarbet ktarbet commented Nov 6, 2025

Copy link
Copy Markdown
Contributor
  • Add abbreviations for few data types

  • Add handling for additional data types in ztypeName

* Add abbreviations for few data types

* Add handling for additional data types in ztypeName
@ktarbet
ktarbet requested a review from a team November 6, 2025 16:21
@sonarqubecloud

sonarqubecloud Bot commented Nov 6, 2025

Copy link
Copy Markdown

@perrymanmd perrymanmd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Deal with comment on ztypeName.c as you wish.

else if (recordType == DATA_TYPE_UGT) {
if (boolAbbreviation) return DATA_TYPE_ABBR_400;
return DATA_TYPE_400;
}

@perrymanmd perrymanmd Nov 6, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not

return boolAbbreviation ? DATA_TYPE_ABBR_400 : DATA_TYPE_400;

I would also suggest using switch(recordType) { instead of chaining else if blocks.

Just stylistic, doesn't affect my approval the PR

@ktarbet
ktarbet merged commit 283185b into master Nov 6, 2025
5 checks passed
@ktarbet
ktarbet deleted the cherry-pick-type-names branch November 17, 2025 22:18
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.

3 participants