Skip to content

Commit

Permalink
Actually do comparisons to None correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Feb 3, 2024
1 parent 5cecd0d commit 32ceaa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netkan/netkan/spacedock_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class SpaceDockAdder:
NETKAN_SEPARATOR = '---\n'
_info: Dict[str, Any]


def __init__(self, message: Message, nk_repo: NetkanRepo, game: Game, github_pr: Optional[GitHubPR] = None) -> None:
self.message = message
self.nk_repo = nk_repo
Expand Down Expand Up @@ -120,9 +121,9 @@ def make_netkan(self, info: Dict[str, Any]) -> List[Dict[str, Any]]:
netkans = []
ident = re.sub(r'[\W_]+', '', info.get('name', ''))
gh_repo = self.get_github_repo(info.get('source_link',''))
if gh_repo != None:
if gh_repo is not None:
gh_netkan = self.make_github_netkan(ident,gh_repo,info)
if gh_netkan != None:
if gh_netkan is not None:
netkans.append(gh_netkan)
netkans.append(self.make_spacedock_netkan(ident,info))
return netkans
Expand Down

0 comments on commit 32ceaa4

Please sign in to comment.