aboutsummaryrefslogtreecommitdiffstats
path: root/app/Main.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-10-05 09:46:55 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-10-05 09:46:55 +0200
commit1890844c731b4c5c648b1871193947144aefa3dd (patch)
treed4d44e7369d039d3b18e91b9696004a51a01ea87 /app/Main.hs
parented2a9d64f07656956b76442ed91b41981b912a60 (diff)
refactor issue text extraction
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Main.hs b/app/Main.hs
index cc8bde3..f48d824 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -166,9 +166,7 @@ showMatches issues = do
P.vsep
( concat
[ [P.annotate P.bold (P.pretty issue.title)],
- if not (T.null issue.description)
- then [P.pretty issue.description]
- else [],
+ maybe [] ((: []) . P.pretty) issue.description,
map
( \(I.Tag k v) ->
P.annotate (P.colorDull P.Yellow) $