live-fns: handle exception in github release badge

pull/93/head
Amio 2018-08-07 22:07:13 +08:00
rodzic c5d6eb4239
commit 7a5f06fcc5
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -42,6 +42,14 @@ async function release (user, repo, channel) {
const [latest] = logs
const stable = logs.find(log => !log.prerelease)
if (!latest) {
return {
subject: 'release',
status: 'none',
color: 'yellow'
}
}
switch (channel) {
case 'stable':
return {