Skip to content

Commit abf42f1

Browse files
committed
chore: address Sonar findings
1 parent 0ba340c commit abf42f1

File tree

2 files changed

+66
-185
lines changed

2 files changed

+66
-185
lines changed

packages/tracer/tests/e2e/allFeatures.decorator.test.functionCode.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class MyFunctionBase {
4141
event: CustomEvent,
4242
_context: Context,
4343
_callback: Callback<unknown>
44-
): unknown | Promise<unknown> {
44+
): unknown {
4545
tracer.putAnnotation(customAnnotationKey, customAnnotationValue);
4646
tracer.putMetadata(customMetadataKey, customMetadataValue);
4747

@@ -84,7 +84,7 @@ class MyFunctionWithDecorator extends MyFunctionBase {
8484
event: CustomEvent,
8585
_context: Context,
8686
_callback: Callback<unknown>
87-
): unknown | Promise<unknown> {
87+
): unknown {
8888
return super.handler(event, _context, _callback);
8989
}
9090

@@ -103,7 +103,7 @@ class MyFunctionWithDecoratorCaptureResponseFalse extends MyFunctionBase {
103103
event: CustomEvent,
104104
_context: Context,
105105
_callback: Callback<unknown>
106-
): unknown | Promise<unknown> {
106+
): unknown {
107107
return super.handler(event, _context, _callback);
108108
}
109109

0 commit comments

Comments
 (0)