Skip to content

Commit 0a078d1

Browse files
author
Alex Chew
committed
Fix misnamed error argument in createSdkGenerationFile
1 parent 7f680be commit 0a078d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambdas/static-asset-uploader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function createCatalogDirectory(staticBucketName) {
198198
*/
199199
async function createSdkGenerationFile(staticBucketName) {
200200
return await exports.s3.headObject({ Bucket: staticBucketName, Key: 'sdkGeneration.json' }).promise()
201-
.catch(async (_) => {
201+
.catch(async _error => {
202202
// assume it's a NotFound error, and upload a new version
203203
console.log('Uploading sdkGeneration.json since it seems to not exist')
204204
let params = { Bucket: staticBucketName, Key: 'sdkGeneration.json', Body: '{}' }

0 commit comments

Comments
 (0)