Skip to content

Commit e9137f4

Browse files
authored
fixing indentation
1 parent 9599ce6 commit e9137f4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

app.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@
3232

3333
secure = False
3434

35-
def fillInVars(obj):
36-
if isinstance(obj, dict):
37-
for key, value in obj.items():
38-
obj[key] = fillInVars(value)
39-
elif isinstance(obj, list):
40-
for i in range(len(obj)):
41-
obj[i] = fillInVars(obj[i])
42-
elif isinstance(obj, str):
43-
matches = re.findall(r"\${(.*?)}", obj)
44-
for match in matches:
45-
if match in VARIABLES:
46-
value = VARIABLES[match]
47-
48-
if isinstance(value, str):
49-
newValue = obj.replace(f"${{{match}}}", str(value))
50-
return newValue
51-
else:
52-
return value
35+
def fillInVars(obj):
36+
if isinstance(obj, dict):
37+
for key, value in obj.items():
38+
obj[key] = fillInVars(value)
39+
elif isinstance(obj, list):
40+
for i in range(len(obj)):
41+
obj[i] = fillInVars(obj[i])
42+
elif isinstance(obj, str):
43+
matches = re.findall(r"\${(.*?)}", obj)
44+
for match in matches:
45+
if match in VARIABLES:
46+
value = VARIABLES[match]
47+
48+
if isinstance(value, str):
49+
newValue = obj.replace(f"${{{match}}}", str(value))
50+
return newValue
51+
else:
52+
return value
5353
return obj
5454

5555
def UnauthorizedResponse(prompt=None):

0 commit comments

Comments
 (0)