Skip to content

Commit 8e02b00

Browse files
driverptmndeveci
andcommitted
Apply PR Suggestion
Co-authored-by: Mehmet Nuri Deveci <[email protected]>
1 parent 94bc1e4 commit 8e02b00

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

samcli/lib/sync/flows/alias_version_sync_flow.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,8 @@ def _equality_keys(self) -> Any:
118118

119119
def _get_version_alias_if_exists(self) -> Optional[str]:
120120
try:
121-
return str(
122-
self._lambda_client.get_alias(
123-
FunctionName=self.get_physical_id(self._function_identifier), Name=self._alias_name
124-
).get("FunctionVersion")
125-
)
121+
return self._lambda_client.get_alias(
122+
FunctionName=self.get_physical_id(self._function_identifier), Name=self._alias_name
123+
).get("FunctionVersion")
126124
except self._lambda_client.exceptions.ResourceNotFoundException:
127125
return None

0 commit comments

Comments
 (0)