From 300ecea791018e48c52b69090ab7dfa929e6c626 Mon Sep 17 00:00:00 2001 From: Amio Date: Fri, 31 May 2019 12:51:16 +0800 Subject: [PATCH] Clean code --- endpoints/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/github.ts b/endpoints/github.ts index a4cce64..1d4022f 100644 --- a/endpoints/github.ts +++ b/endpoints/github.ts @@ -154,7 +154,7 @@ async function release ({ owner, repo, channel }: Args) { return { subject: 'release', status: version(latest ? latest.name || latest.tag_name : null), - color: latest.prerelease === true ? 'orange' : 'blue' + color: latest.prerelease ? 'orange' : 'blue' } } }