Ignore nil blocks
Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
parent
1877f186fb
commit
027525338c
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ func (b *I3bar) Emit(generators []BlockGenerator) error {
|
|||
TextColor: defaultColorSet.Bad,
|
||||
}
|
||||
}
|
||||
if b == nil {
|
||||
continue
|
||||
}
|
||||
blocks = append(blocks, b)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue