Skip to content

Commit 522b134

Browse files
authored
rename variable in html2 (#20443)
1 parent eb47b9d commit 522b134

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@
111111
} else {
112112
// Use a for loop instead of forEach to avoid nested functions
113113
// Otherwise "return" will not work properly
114-
for(var prompt in currentNode){
115-
if (currentNode.hasOwnProperty(prompt)) {
116-
currentChild = currentNode[prompt]
117-
if (id == prompt) {
114+
for(var property in currentNode){
115+
if (currentNode.hasOwnProperty(property)) {
116+
currentChild = currentNode[property]
117+
if (id == property) {
118118
return currentChild;
119119
} else {
120120
// Search in the current child

samples/documentation/html2/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@
163163
} else {
164164
// Use a for loop instead of forEach to avoid nested functions
165165
// Otherwise "return" will not work properly
166-
for(var prompt in currentNode){
167-
if (currentNode.hasOwnProperty(prompt)) {
168-
currentChild = currentNode[prompt]
169-
if (id == prompt) {
166+
for(var property in currentNode){
167+
if (currentNode.hasOwnProperty(property)) {
168+
currentChild = currentNode[property]
169+
if (id == property) {
170170
return currentChild;
171171
} else {
172172
// Search in the current child

0 commit comments

Comments
 (0)