Skip to content

Commit 0286a89

Browse files
committed
fix: styles
1 parent 11d3a14 commit 0286a89

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/tools/atlas/metadata/connectCluster.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class ConnectClusterTool extends AtlasToolBase {
201201
for (let i = 0; i < 60; i++) {
202202
const state = await this.queryConnection(projectId, clusterName);
203203
switch (state) {
204-
case "connected":
204+
case "connected": {
205205
return {
206206
content: [
207207
{
@@ -210,12 +210,14 @@ export class ConnectClusterTool extends AtlasToolBase {
210210
},
211211
],
212212
};
213-
case "connecting":
213+
}
214+
case "connecting": {
214215
break;
216+
}
215217
case "connected-to-other-cluster":
216218
case "disconnected":
217219
case "unknown":
218-
default:
220+
default: {
219221
await this.session.disconnect();
220222
const connectionString = await this.prepareClusterConnection(projectId, clusterName);
221223

@@ -229,6 +231,7 @@ export class ConnectClusterTool extends AtlasToolBase {
229231
);
230232
});
231233
break;
234+
}
232235
}
233236

234237
await sleep(500);

0 commit comments

Comments
 (0)