Skip to content

Commit f2b658f

Browse files
committed
fix(pyfaasm): remove unnecessary global keywords
1 parent 327234c commit f2b658f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pyfaasm/pyfaasm/core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717

1818
def get_env_bool(var_name):
19-
global env_cache
20-
2119
if var_name not in env_cache:
2220
value = os.environ.get(var_name)
2321
env_cache[var_name] = bool(value)
@@ -26,7 +24,6 @@ def get_env_bool(var_name):
2624

2725

2826
def set_env_bool(var_name, value):
29-
global env_cache
3027
env_cache[var_name] = value
3128

3229

@@ -76,7 +73,6 @@ def write_output(output):
7673

7774
def get_output():
7875
if is_local_output():
79-
global output_data
8076
return output_data
8177
else:
8278
raise RuntimeError(

0 commit comments

Comments
 (0)