Skip to content

Commit 5505284

Browse files
committed
fix(resource-detector-aws): remove redundant variable in ECS container ID extraction
1 parent 2f37644 commit 5505284

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/resource-detector-aws/src/detectors/AwsEcsDetector.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ export class AwsEcsDetector implements ResourceDetector {
156156
* and then return undefined.
157157
*/
158158
private async _getContainerId(): Promise<string | undefined> {
159-
let containerId = undefined;
160159
try {
161160
const rawData = await AwsEcsDetector.readFileAsync(
162161
AwsEcsDetector.DEFAULT_CGROUP_PATH,
@@ -187,7 +186,7 @@ export class AwsEcsDetector implements ResourceDetector {
187186
} catch (e) {
188187
diag.debug('AwsEcsDetector failed to read container ID', e);
189188
}
190-
return containerId;
189+
return undefined;
191190
}
192191

193192

0 commit comments

Comments
 (0)