Skip to content

Commit 1ff95de

Browse files
committed
Fix: remove commented code
1 parent 60214b9 commit 1ff95de

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/pyosmeta/contributors.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,6 @@ def __init__(self, github_api: GitHubAPI, json_files: List) -> None:
5252
],
5353
}
5454

55-
# This is already in the github api module
56-
# def get_token(self) -> str:
57-
# """Fetches the GitHub API key from the users environment. If running
58-
# local from an .env file.
59-
60-
# Returns
61-
# -------
62-
# str
63-
# The provided API key in the .env file.
64-
# """
65-
# load_dotenv()
66-
# return os.environ["GITHUB_TOKEN"]
67-
6855
def check_contrib_type(self, json_file: str):
6956
"""
7057
Determine the type of contribution the person
@@ -177,14 +164,7 @@ def return_user_info(
177164
"""
178165

179166
response_json = self.github_api.get_user_info(gh_handle, name)
180-
# url = f"https://api.github.com/users/{username}"
181-
# headers = {"Authorization": f"Bearer {self.get_token()}"}
182-
# response = requests.get(url, headers=headers)
183-
# # TODO: add check here for if credentials are bad
184-
# # if message = Bad credentials
185-
# response_json = response.json()
186-
187-
# TODO: make an attribute and call it here?
167+
188168
update_keys = {
189169
"name": "name",
190170
"location": "location",

0 commit comments

Comments
 (0)