Skip to content

Commit

Permalink
refactor(detector-aws): fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Jul 12, 2024
1 parent df7d3b1 commit d20787a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import {
DetectorSync,
IResource,
Resource,
ResourceAttributes,
ResourceDetectionConfig,
Expand All @@ -36,7 +37,7 @@ import {
* Returns an empty Resource if detection fails.
*/
export class AwsLambdaDetector implements DetectorSync {
detect(_config?: ResourceDetectionConfig): Resource {
detect(_config?: ResourceDetectionConfig): IResource {
const functionName = process.env.AWS_LAMBDA_FUNCTION_NAME;
if (!functionName) {
return Resource.empty();
Expand Down

0 comments on commit d20787a

Please sign in to comment.