Skip to content

Commit

Permalink
chore: removed extra export in docs/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi committed Aug 17, 2022
1 parent de84781 commit 9052913
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/core/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Key | Example

}

export const myFunction = new Lambda();
const myFunction = new Lambda();
export const handler = myFunction.handler.bind(myFunction); // (1)
```

Expand Down Expand Up @@ -236,7 +236,7 @@ This is disabled by default to prevent sensitive info being logged

}

export const myFunction = new Lambda();
const myFunction = new Lambda();
export const handler = myFunction.handler.bind(myFunction); // (1)
```

Expand Down Expand Up @@ -403,7 +403,7 @@ If you want to make sure that persistent attributes added **inside the handler f

}

export const myFunction = new Lambda();
const myFunction = new Lambda();
export const handler = myFunction.handler.bind(myFunction); // (1)
```

Expand Down
2 changes: 1 addition & 1 deletion packages/logger/src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import type {
* }
* }
*
* export const handlerClass = new Lambda();
* const handlerClass = new Lambda();
* export const handler = handlerClass.handler.bind(handlerClass);
* ```
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ class Lambda implements LambdaInterface {
}
}

export const myFunction = new Lambda();
const myFunction = new Lambda();
export const handler = myFunction.handler.bind(myFunction);

0 comments on commit 9052913

Please sign in to comment.