Skip to content

Conversation

@TheRobbie73
Copy link

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
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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

2 participants