Skip to content

Commit 9a4fed7

Browse files
author
Chris Cho
authored
DOCSP-9040: convert remaining anon functions to arrow ones (#77)
1 parent 38d0e8a commit 9a4fed7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/code-snippets/usage-examples/bulkWrite-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function run() {
3333
// to improve write performance.
3434
mflix
3535
.collection("users")
36-
.bulkWrite(usersToInsert, { ordered: false }, function(error, result) {
36+
.bulkWrite(usersToInsert, { ordered: false }, (error, result) => {
3737
// The bulk write operation may successfully insert documents
3838
// and also return an error, so both cases must be handled.
3939
if (result.nInserted > 0) {

source/fundamentals/logging.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The following example demonstrates how to define a custom logger.
148148
Logger.setLevel("debug");
149149

150150
// Set our own logger
151-
Logger.setCurrentLogger(function(msg, context) {
151+
Logger.setCurrentLogger((msg, context) => {
152152
// Add your custom logic here
153153
console.log(msg, context);
154154
});

0 commit comments

Comments
 (0)