Skip to content

Commit 5ec6acd

Browse files
committed
fix Note for better readability
1 parent 9dd80a7 commit 5ec6acd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cfripper/model/utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,28 @@ def get_aws_service_from_arn(arn: str) -> Optional[str]:
101101
match = REGEX_ARN.match(arn)
102102
if match:
103103
return match.group(1)
104+
return None
104105

105106

106107
def get_account_id_from_arn(arn: str) -> Optional[str]:
107108
match = REGEX_ARN.match(arn)
108109
if match:
109110
return match.group(3)
111+
return None
110112

111113

112114
def get_account_id_from_iam_arn(arn: str) -> Optional[str]:
113115
match = REGEX_IAM_ARN.match(arn)
114116
if match:
115117
return match.group(1)
118+
return None
116119

117120

118121
def get_account_id_from_sts_arn(arn: str) -> Optional[str]:
119122
match = REGEX_STS_ARN.match(arn)
120123
if match:
121124
return match.group(1)
125+
return None
122126

123127

124128
def get_account_id_from_principal(principal: str) -> Optional[str]:

0 commit comments

Comments
 (0)