Skip to content

Commit f984dd7

Browse files
committed
pylint changes
1 parent dc5c773 commit f984dd7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

policy_sentry/util/arns.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,7 @@ def same_resource_type(self, arn_in_database):
135135
logger.debug("Special type: %s", resource_path_arn_in_database)
136136
# handling special case table/${TableName}
137137
if resource_string_arn_in_database in ["table/${TableName}", "${BucketName}"]:
138-
if len(self.resource_string.split('/')) == len(elements[5].split('/')):
139-
return True
140-
else:
141-
return False
138+
return len(self.resource_string.split('/')) == len(elements[5].split('/'))
142139
# If we've made it this far, then it is a special type
143140
# return True
144141
# Presence of / would mean it's an object in both so it matches

0 commit comments

Comments
 (0)