Skip to content

Commit 8860f0d

Browse files
committed
Update catch to not have a type and default should also end with break in switch
1 parent 342bd25 commit 8860f0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ Switch statements should have the following form:
905905
}
906906
```
907907

908-
- Each switch group except default should end with `break`, `return`, or `throw`.
908+
- Each switch group should end with `break`, `return`, or `throw`.
909909
- Each switch group should have a default.
910910

911911
**[top](#table-of-contents)**
@@ -919,13 +919,13 @@ Try statements should have the following form:
919919
```typescript
920920
try {
921921
// ...
922-
} catch (error: Error) {
922+
} catch (error) {
923923
// ...
924924
}
925925

926926
try {
927927
// ...
928-
} catch (error: Error) {
928+
} catch (error) {
929929
// ...
930930
} finally {
931931
// ...

0 commit comments

Comments
 (0)