diff --git a/src/lambda/handler-runner/docker-runner/DockerContainer.js b/src/lambda/handler-runner/docker-runner/DockerContainer.js index a789e2562..25a33824c 100644 --- a/src/lambda/handler-runner/docker-runner/DockerContainer.js +++ b/src/lambda/handler-runner/docker-runner/DockerContainer.js @@ -225,7 +225,7 @@ export default class DockerContainer { } async #downloadLayer(layerArn, layerDir) { - const layerName = layerArn.split(':layer:')[1] + const [, layerName] = layerArn.split(':layer:') const layerZipFile = `${layerDir}/${layerName}.zip` const layerProgress = progress.get(`layer-${layerName}`)