Skip to content

Commit fab3be9

Browse files
authored
Merge pull request #5342 from stsewd/initialize-local-variable
Initialize local variable before using it
2 parents 86bfdff + f07c519 commit fab3be9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readthedocs/oauth/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
"""Support code for OAuth, including webhook support."""
42

53
import logging
@@ -12,7 +10,6 @@
1210
BitbucketService,
1311
GitHubService,
1412
GitLabService,
15-
registry,
1613
)
1714
from readthedocs.projects.models import Project
1815

@@ -32,6 +29,7 @@ def update_webhook(project, integration, request=None):
3229
if service_cls is None:
3330
return None
3431

32+
updated = False
3533
try:
3634
account = project.remote_repository.account
3735
service = service_cls(request.user, account)

0 commit comments

Comments
 (0)