Skip to content

Commit ec6c87f

Browse files
committed
ci: fix test failure and run on push
1 parent 1c19523 commit ec6c87f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI
22

33
on:
4+
push:
5+
branches: [main]
46
pull_request:
57
paths:
68
- deno.json

src/utils/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function flatmap<S, T>(t: Promise<T | Falsy> | (T | Falsy), body: (t: T)
7878
.then(body => body || undefined)
7979
.catch(err => { if (!opts?.rescue) throw err; else return undefined } )
8080
return bar
81-
})
81+
}).catch(err => { if (!opts?.rescue) throw err; else return undefined } )
8282
return foo
8383
} else {
8484
if (t) return body(t) as (S | Falsy) || undefined

0 commit comments

Comments
 (0)