Skip to content

Commit 33792c5

Browse files
authored
Deleted some extra parentheses, part3c.md
In the entire chapter, there were 8 examples where `.catch(error => {})` were used. Those two examples that I have updated contained parentheses around the error statement that looked like `.catch((error) => {}`. This made the code feels a little different than usual, so I updated it. Incase the changes should have been on the other examples, I will be happy to update this pull request!
1 parent fa68638 commit 33792c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/3/en/part3c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ mongoose.connect(url)
456456
.then(result => {
457457
console.log('connected to MongoDB')
458458
})
459-
.catch((error) => {
459+
.catch(error => {
460460
console.log('error connecting to MongoDB:', error.message)
461461
})
462462
// highlight-end
@@ -500,7 +500,7 @@ mongoose.connect(url)
500500
.then(result => {
501501
console.log('connected to MongoDB')
502502
})
503-
.catch((error) => {
503+
.catch(error => {
504504
console.log('error connecting to MongoDB:', error.message)
505505
})
506506
```

0 commit comments

Comments
 (0)