Skip to content

Commit 54a6746

Browse files
Muzaffer AydinMuzaffer Aydin
authored andcommitted
fix(docdb): resolve ESLint issues in DocDB files
1 parent b165a7b commit 54a6746

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

packages/core/src/docdb/explorer/dbClusterNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ export class DBClusterNode extends DBResourceNode {
178178
override clearTimer(): void {
179179
this.pollingSet.delete(this.arn)
180180
this.pollingSet.clearTimer()
181-
this.childNodes.forEach((node) => {
181+
for (const node of this.childNodes) {
182182
getLogger().info(`(clearTimer) Removing Polling from node: ${node.arn}`)
183183
node.pollingSet.delete(node.arn)
184184
node.pollingSet.clearTimer()
185-
})
185+
}
186186
}
187187

188188
public override [inspect.custom](): string {

packages/core/src/docdb/explorer/dbGlobalClusterNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class DBGlobalClusterNode extends DBResourceNode {
4444
this.arn = cluster.GlobalClusterArn ?? ''
4545
this.name = cluster.GlobalClusterIdentifier ?? ''
4646
this.contextValue = this.getContext()
47-
this.iconPath = new vscode.ThemeIcon('globe') //TODO: determine icon for global cluster
47+
this.iconPath = new vscode.ThemeIcon('globe') // TODO: determine icon for global cluster
4848
this.description = 'Global cluster'
4949
this.tooltip = `${this.name}\nEngine: ${this.cluster.EngineVersion}\nStatus: ${this.cluster.Status} (read-only)`
5050
if (this.isStatusRequiringPolling()) {

packages/core/src/docdb/wizards/regionalClusterWizard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async function createInstanceClassPrompter(
189189
})
190190
}
191191

192-
//TODO: Make this it's own picker class
192+
// TODO: Make this it's own picker class
193193
function instanceCountItems(defaultCount: number, max: number = MaxInstanceCount): DataQuickPickItem<number>[] {
194194
const items = []
195195

packages/core/src/test/docdb/utils.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,20 @@ describe('validatePassword', function () {
4141
assert.strictEqual(validatePassword('passw0rd |~'), undefined)
4242
assert.strictEqual(validatePassword('1234567'), 'Password must be between 8 and 100 characters long')
4343
assert.strictEqual(validatePassword('x'.repeat(101)), 'Password must be between 8 and 100 characters long')
44-
void ['pass/word', 'p@ssword', '"password"'].forEach((item) =>
44+
45+
for (const item of ['pass/word', 'p@ssword', '"password"']) {
4546
assert.strictEqual(
4647
validatePassword(item),
4748
'Password must only contain printable ASCII characters (except for slash, double quotes and @ symbol)'
4849
)
49-
)
50-
void ['password\x19', 'password\u{fe0f}'].forEach((item) =>
50+
}
51+
52+
for (const item of ['password\x19', 'password\u{fe0f}']) {
5153
assert.strictEqual(
5254
validatePassword(item),
5355
'Password must only contain printable ASCII characters (except for slash, double quotes and @ symbol)'
5456
)
55-
)
57+
}
5658
})
5759
})
5860

0 commit comments

Comments
 (0)