Skip to content

Commit 82ef2aa

Browse files
committed
Add space after catch keyword
1 parent 86cdd4f commit 82ef2aa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/content/4/en/part4b.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ notesRouter.post('/', async (request, response, next) => {
707707
try {
708708
const savedNote = await note.save()
709709
response.status(201).json(savedNote)
710-
} catch(exception) {
710+
} catch (exception) {
711711
next(exception)
712712
}
713713
// highlight-end
@@ -776,7 +776,7 @@ notesRouter.get('/:id', async (request, response, next) => {
776776
} else {
777777
response.status(404).end()
778778
}
779-
} catch(exception) {
779+
} catch (exception) {
780780
next(exception)
781781
}
782782
})
@@ -803,7 +803,7 @@ All of the route handlers follow the same structure
803803
```js
804804
try {
805805
// do the async operations here
806-
} catch(exception) {
806+
} catch (exception) {
807807
next(exception)
808808
}
809809
```

src/content/4/fi/osa4b.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ notesRouter.post('/', async (request, response, next) => {
702702
try {
703703
const savedNote = await note.save()
704704
response.status(201).json(savedNote)
705-
} catch(exception) {
705+
} catch (exception) {
706706
next(exception)
707707
}
708708
// highlight-end
@@ -771,7 +771,7 @@ notesRouter.get('/:id', async (request, response, next) => {
771771
} else {
772772
response.status(404).end()
773773
}
774-
} catch(exception) {
774+
} catch (exception) {
775775
next(exception)
776776
}
777777
})
@@ -797,7 +797,7 @@ Async/await selkeyttää koodia jossain määrin, mutta sen "hinta" on poikkeust
797797
```js
798798
try {
799799
// do the async operations here
800-
} catch(exception) {
800+
} catch (exception) {
801801
next(exception)
802802
}
803803
```

0 commit comments

Comments
 (0)