Skip to content

Commit

Permalink
Refactor: suppress warning by correctly comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself committed Sep 2, 2021
1 parent 4c3840d commit e65b262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pontos/changelog/conventional_commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_git_log(self) -> Union[List[str], None]:
proc = self.shell_cmd_runner(
'git log "$(git describe --tags --abbrev=0)..HEAD" --oneline'
)
if proc.stdout and proc.stdout is not '':
if proc.stdout and proc.stdout != '':
return proc.stdout.strip().split('\n')
return None

Expand Down

0 comments on commit e65b262

Please sign in to comment.