Skip to content

Commit 50367d3

Browse files
committed
fix: DEP0044 in TerraformOutput
Don't use deprecated `util.isArray`. Closes #3860
1 parent a36c83b commit 50367d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cdktf/lib/terraform-output.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { TerraformElement } from "./terraform-element";
55
import { deepMerge } from "./util";
66
import { ITerraformDependable } from "./terraform-dependable";
77
import { Expression } from ".";
8-
import { isArray } from "util";
98
import { ITerraformAddressable } from "./terraform-addressable";
109
import { Token } from "./tokens";
1110
import { Precondition } from "./terraform-conditions";
@@ -66,7 +65,7 @@ export class TerraformOutput extends TerraformElement {
6665
return (
6766
object &&
6867
typeof object === "object" &&
69-
!isArray(object) &&
68+
!Array.isArray(object) &&
7069
"fqn" in object
7170
);
7271
}

0 commit comments

Comments
 (0)