Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 4897789

Browse files
committed
Add proposed change to silence mypy
1 parent 6cd4353 commit 4897789

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clrenv/read.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def postprocess_str(self, value: str) -> Union[str, Secret]:
114114
value = os.path.expandvars(value)
115115
# If value is a path starting with ~, expand.
116116
if value.startswith("~"):
117-
value = os.path.expanduser(value)
117+
return os.path.expanduser(value)
118118
# Substitute from clrypt keyfile.
119119
elif value.startswith("^keyfile "):
120-
value = Secret(source=value, value=self.evaluate_clrypt_key(value[9:]))
120+
return Secret(source=value, value=self.evaluate_clrypt_key(value[9:]))
121121
# Substitute from aws ssm parameter store.
122122
elif value.startswith("^parameter "):
123-
value = Secret(source=value, value=self.evaluate_ssm_parameter(value[11:]))
123+
return Secret(source=value, value=self.evaluate_ssm_parameter(value[11:]))
124124

125125
return value
126126

0 commit comments

Comments
 (0)