Skip to content

Commit 9052913

Browse files
committed
chore: removed extra export in docs/examples
1 parent de84781 commit 9052913

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/core/logger.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Key | Example
155155

156156
}
157157

158-
export const myFunction = new Lambda();
158+
const myFunction = new Lambda();
159159
export const handler = myFunction.handler.bind(myFunction); // (1)
160160
```
161161

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

237237
}
238238

239-
export const myFunction = new Lambda();
239+
const myFunction = new Lambda();
240240
export const handler = myFunction.handler.bind(myFunction); // (1)
241241
```
242242

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

404404
}
405405

406-
export const myFunction = new Lambda();
406+
const myFunction = new Lambda();
407407
export const handler = myFunction.handler.bind(myFunction); // (1)
408408
```
409409

packages/logger/src/Logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import type {
9999
* }
100100
* }
101101
*
102-
* export const handlerClass = new Lambda();
102+
* const handlerClass = new Lambda();
103103
* export const handler = handlerClass.handler.bind(handlerClass);
104104
* ```
105105
*

packages/logger/tests/e2e/sampleRate.decorator.test.FunctionCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ class Lambda implements LambdaInterface {
3636
}
3737
}
3838

39-
export const myFunction = new Lambda();
39+
const myFunction = new Lambda();
4040
export const handler = myFunction.handler.bind(myFunction);

0 commit comments

Comments
 (0)