tiny style fixes
This commit is contained in:
parent
78a2590631
commit
3d852aa9d3
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ class RepositoryTokenList(RepositoryParamResource):
|
|||
|
||||
log_action('add_repo_accesstoken', namespace,
|
||||
{'repo': repository, 'token': token_params['friendlyName']},
|
||||
repo = model.get_repository(namespace, repository))
|
||||
repo=model.get_repository(namespace, repository))
|
||||
|
||||
return token_view(token), 201
|
||||
|
||||
|
@ -116,7 +116,7 @@ class RepositoryToken(RepositoryParamResource):
|
|||
log_action('change_repo_permission', namespace,
|
||||
{'repo': repository, 'token': token.friendly_name, 'code': code,
|
||||
'role': new_permission['role']},
|
||||
repo = model.get_repository(namespace, repository))
|
||||
repo=model.get_repository(namespace, repository))
|
||||
|
||||
return token_view(token)
|
||||
|
||||
|
@ -129,6 +129,6 @@ class RepositoryToken(RepositoryParamResource):
|
|||
log_action('delete_repo_accesstoken', namespace,
|
||||
{'repo': repository, 'token': token.friendly_name,
|
||||
'code': code},
|
||||
repo = model.get_repository(namespace, repository))
|
||||
repo=model.get_repository(namespace, repository))
|
||||
|
||||
return 'Deleted', 204
|
||||
|
|
Reference in a new issue