Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Trivial: align noop capturer with Sentry (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
impl committed Feb 1, 2019
1 parent 528b214 commit 25a3532
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion alerts/internal/noop/capturer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ func (c Capturer) WithTags(tags ...trackers.Tag) trackers.Capturer {
return c
}

func (c Capturer) Try(ctx context.Context, fn func(ctx context.Context)) interface{} {
func (c Capturer) Try(ctx context.Context, fn func(ctx context.Context)) (rv interface{}) {
defer func() {
rv = recover()
}()

fn(ctx)
return nil
}
Expand Down

0 comments on commit 25a3532

Please sign in to comment.