Skip to content

Commit 05eb53a

Browse files
[typescript-fetch] Use typed comparion
Co-authored-by: Esteban Gehring <[email protected]>
1 parent 78a74a0 commit 05eb53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/typescript-fetch/modelEnum.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export function instanceOf{{classname}}(value: any): boolean {
44
for (const key in {{classname}}) {
55
if (Object.prototype.hasOwnProperty.call({{classname}}, key)) {
6-
if ({{classname}}[key] == value) {
6+
if ({{classname}}[key] === value) {
77
return true;
88
}
99
}

0 commit comments

Comments
 (0)