fix bad merge

This commit is contained in:
Evan Cordell 2017-07-18 15:52:06 -04:00
parent b8fc20c191
commit cb02610bfb

View file

@ -349,11 +349,6 @@ def log_action(kind, user_or_orgname, metadata=None, repo=None, repo_name=None):
if not metadata:
metadata = {}
if repo_name:
repository = model.repository.get_repository(user_or_orgname, repo_name)
else:
repository = repo
oauth_token = get_validated_oauth_token()
if oauth_token:
metadata['oauth_token_id'] = oauth_token.id