Commit 13e0b59b authored by slamm's avatar slamm Committed by Commit bot

Refactor _IsValidPrivacyBucket.

BUG=

Review URL: https://codereview.chromium.org/660523004

Cr-Commit-Position: refs/heads/master@{#299768}
parent 4d71ef95
......@@ -75,11 +75,7 @@ class PageSet(user_story_set.UserStorySet):
@staticmethod
def _IsValidPrivacyBucket(bucket_name):
if not bucket_name:
return True
if (bucket_name in [PUBLIC_BUCKET, PARTNER_BUCKET, INTERNAL_BUCKET]):
return True
return False
return bucket_name in (None, PUBLIC_BUCKET, PARTNER_BUCKET, INTERNAL_BUCKET)
@property
def base_dir(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment