Skip to content

Commit

Permalink
Make Linter Happy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
driverpt committed Jan 30, 2025
1 parent 8e02b00 commit 3a70d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samcli/lib/sync/flows/alias_version_sync_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def _equality_keys(self) -> Any:

def _get_version_alias_if_exists(self) -> Optional[str]:
try:
return self._lambda_client.get_alias(
FunctionName=self.get_physical_id(self._function_identifier), Name=self._alias_name
).get("FunctionVersion")
result = self._lambda_client.get_alias(FunctionName=self.get_physical_id(
self._function_identifier), Name=self._alias_name).get("FunctionVersion")
return str(result) if result is not None else result
except self._lambda_client.exceptions.ResourceNotFoundException:
return None

0 comments on commit 3a70d2a

Please sign in to comment.