style(endpoints/api/repoemail): ran yapf
### Description of Changes Issue: https://coreosdev.atlassian.net/browse/QUAY-626 ## Reviewer Checklist - [ ] It works! - [ ] Comments provide sufficient explanations for the next contributor - [ ] Tests cover changes and corner cases - [ ] Follows Quay syntax patterns and format
This commit is contained in:
parent
d01b55f27d
commit
bbe9b033d0
4 changed files with 31 additions and 17 deletions
|
@ -6,7 +6,8 @@ def _return_none_or_data(func, namespace_name, repository_name, email):
|
|||
data = func(namespace_name, repository_name, email)
|
||||
if data is None:
|
||||
return data
|
||||
return RepositoryAuthorizedEmail(email, repository_name, namespace_name, data.confirmed, data.code)
|
||||
return RepositoryAuthorizedEmail(email, repository_name, namespace_name, data.confirmed,
|
||||
data.code)
|
||||
|
||||
|
||||
class PreOCIModel(RepoEmailDataInterface):
|
||||
|
@ -16,11 +17,12 @@ class PreOCIModel(RepoEmailDataInterface):
|
|||
"""
|
||||
|
||||
def get_email_authorized_for_repo(self, namespace_name, repository_name, email):
|
||||
return _return_none_or_data(model.repository.get_email_authorized_for_repo, namespace_name, repository_name, email)
|
||||
return _return_none_or_data(model.repository.get_email_authorized_for_repo, namespace_name,
|
||||
repository_name, email)
|
||||
|
||||
def create_email_authorization_for_repo(self, namespace_name, repository_name, email):
|
||||
return _return_none_or_data(model.repository.create_email_authorization_for_repo, namespace_name, repository_name,
|
||||
email)
|
||||
return _return_none_or_data(model.repository.create_email_authorization_for_repo,
|
||||
namespace_name, repository_name, email)
|
||||
|
||||
|
||||
pre_oci_model = PreOCIModel()
|
||||
|
|
Reference in a new issue