Skip to content

dont crash when left, center, or right bars are empty#12

Open
defektive wants to merge 1 commit intoShimmerGlass:masterfrom
defektive:dev/dont-crash-on-empty
Open

dont crash when left, center, or right bars are empty#12
defektive wants to merge 1 commit intoShimmerGlass:masterfrom
defektive:dev/dont-crash-on-empty

Conversation

@defektive
Copy link
Copy Markdown

Not sure if this is the "right" fix...

Not sure if this is the "right" fix...
Comment thread bar/bar.go
func (b *Bar) hasBarSection(section string) bool {
if b.ctx.Has(section) {
sectionMarkup := b.ctx.MustString(section)
if sectionMarkup != "<ModuleRow>\n</ModuleRow>\n" {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This should probably check for more than just this static string.

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.

1 participant