Skip to content

Commit e7dd7a6

Browse files
committed
update copilot comment
1 parent 245a263 commit e7dd7a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/common/atlas/cluster.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ export function formatCluster(cluster: ClusterDescription20240805): Cluster {
5050
};
5151
});
5252

53-
const instanceSize =
54-
regionConfigs.length > 0 && regionConfigs[0]?.instanceSize ? regionConfigs[0].instanceSize : "UNKNOWN";
55-
53+
const instanceSize = regionConfigs[0]?.instanceSize ?? "UNKNOWN";
5654
const clusterInstanceType = instanceSize == "M0" ? "FREE" : "DEDICATED";
5755

5856
return {

0 commit comments

Comments
 (0)