Skip to content

Commit

Permalink
refactor: use array destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Oct 27, 2022
1 parent 6fc9e90 commit 97de51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda/handler-runner/docker-runner/DockerContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)

Expand Down

0 comments on commit 97de51b

Please sign in to comment.