Skip to content

Commit c5b033f

Browse files
resyntax-ci[bot]rfindler
authored andcommitted
Fix 1 occurrence of nested-if-to-cond
This `if`-`else` chain can be converted to a `cond` expression.
1 parent 881379a commit c5b033f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

drracket/browser/private/bullet.rkt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@
6767
(send stream put depth))]
6868
[define/override get-text
6969
(lambda (offset num flattened?)
70-
(if (< num 1)
71-
""
72-
(if flattened?
73-
"* "
74-
"*")))]
70+
(cond
71+
[(< num 1) ""]
72+
[flattened? "* "]
73+
[else "*"]))]
7574
(super-new)
7675
(set-snipclass bullet-snip-class)
7776
(set-count 1)))

0 commit comments

Comments
 (0)