Every line of 'dynamodb describe table' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
78 function deleteTable(client, table, cb) { 79 function check() { 80 client.describeTable({TableName: table.TableName}, function (err, data) { 81 if (err && err.code === 'ResourceNotFoundException') { 82 cb(); 83 } else if (err) { 84 cb(err); 85 } else if (data.Table.TableStatus === 'ACTIVE') { 86 client.deleteTable({TableName: table.TableName}, function (err) { 87 if (err) return cb(err); 88 setTimeout(check, 0); 89 }); 90 } else { 91 setTimeout(check, 1000); 92 } 93 }); 94 } 95 check(); 96 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code