Skip to content

Commit

Permalink
Docs: adding finally example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeme committed Sep 11, 2019
1 parent 460c5ad commit 16a422e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/rules/no-useless-catch.md
Expand Up @@ -43,6 +43,12 @@ try {
} catch (e) {
handleError(e);
}

try {
doSomethingThatMightThrow();
} finally {
cleanUp();
}
```

## When Not To Use It
Expand Down

0 comments on commit 16a422e

Please sign in to comment.