Skip to content

Commit 35daced

Browse files
committed
Fix linting
1 parent 6a302d6 commit 35daced

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

digitalocean-ts-k8s/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ const cluster = new digitalocean.KubernetesCluster("do-cluster", {
2727
// initial provisioning. You'll notice that the `certificate-authority-data`
2828
// field changes on every `pulumi update`.
2929
const kubeconfig = cluster.status.apply(status => {
30-
if (status === 'running') {
31-
const clusterDataSource = cluster.name.apply(name => digitalocean.getKubernetesCluster({name}));
32-
return clusterDataSource.kubeConfigs[0].rawConfig;
33-
} else {
34-
return cluster.kubeConfigs[0].rawConfig;
35-
}
30+
if (status === "running") {
31+
const clusterDataSource = cluster.name.apply(name => digitalocean.getKubernetesCluster({name}));
32+
return clusterDataSource.kubeConfigs[0].rawConfig;
33+
} else {
34+
return cluster.kubeConfigs[0].rawConfig;
35+
}
3636
});
3737

3838
// Now lets actually deploy an application to our new cluster. We begin

0 commit comments

Comments
 (0)