Skip to content

Commit

Permalink
Not reuse variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Jun 28, 2024
1 parent c5ec55c commit 9bd88d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/aws-efs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const { EFSClient, DescribeFileSystemsCommand, DescribeAccessPointsCommand } = r

let client

async function lookupStorageClass (tag) {
async function lookupStorageClass (tagName) {

console.log(`Looking for ${tagName}`)

if (!client) {
client = new EFSClient()
Expand All @@ -20,7 +22,7 @@ async function lookupStorageClass (tag) {
// fsList.FileSystems[i].Tags.forEach(tag => {
for (let j = 0; j<fsList.FileSystems[i].Tags.length; j++) {
const tag = fsList.FileSystems[i].Tags[j]
if (tag.Key === tag) {
if (tag.Key === tagName) {
found = true
}
if (tag.Key === 'storage-class-name') {
Expand Down

0 comments on commit 9bd88d1

Please sign in to comment.