Skip to content

add method to omit commas in IotaType#988

Merged
Robotgiggle merged 2 commits into
FallingColors:mainfrom
TheRobbie73:omitcomma
May 10, 2026
Merged

add method to omit commas in IotaType#988
Robotgiggle merged 2 commits into
FallingColors:mainfrom
TheRobbie73:omitcomma

Conversation

@TheRobbie73
Copy link
Copy Markdown
Contributor

so that custom iotas may omit commas when displayed in list iotas 🥺

var nextIotaOmitsComma = nextType != null && nextType.omitCommas();
var alwaysShowCommas = HexConfig.client() != null && HexConfig.client().alwaysShowListCommas();
if (thisIotaNeedsComma || nextIotaNeedsComma || alwaysShowCommas)
if (!thisIotaOmitsComma || !nextIotaOmitsComma || alwaysShowCommas)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This double-negative is pretty confusing. Can we switch the logic back around? eg:

var thisIotaNeedsComma = this.type == null || !thisType.omitCommas();

Copy link
Copy Markdown
Member

@Robotgiggle Robotgiggle left a comment

Choose a reason for hiding this comment

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

Removed the double negative based on object's suggestion - LGTM

@Robotgiggle Robotgiggle enabled auto-merge May 10, 2026 00:33
@Robotgiggle Robotgiggle added this pull request to the merge queue May 10, 2026
Merged via the queue into FallingColors:main with commit fbf4711 May 10, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants