remove unnecessary length
This commit is contained in:
parent
1ce4b92423
commit
7b5ddab5da
1 changed files with 4 additions and 4 deletions
|
@ -192,9 +192,9 @@ makeDesc (LongDesc fs) = [b|@0
|
||||||
|
|
||||||
makeButtonBar :: Strict.Text -> [(Image, Size)] -> Builder
|
makeButtonBar :: Strict.Text -> [(Image, Size)] -> Builder
|
||||||
makeButtonBar title images =
|
makeButtonBar title images =
|
||||||
case length images of
|
case images of
|
||||||
0 -> throw $ NoEligibleImages title
|
[] -> throw $ NoEligibleImages title
|
||||||
1 -> ""
|
[_] -> ""
|
||||||
_ -> [b|@0
|
_ -> [b|@0
|
||||||
<nav id=alts aria-label="alternate versions">
|
<nav id=alts aria-label="alternate versions">
|
||||||
<ul class="buttonbar bb-choice">
|
<ul class="buttonbar bb-choice">
|
||||||
|
|
Loading…
Reference in a new issue