Skip to content

Commit

Permalink
style change
Browse files Browse the repository at this point in the history
  • Loading branch information
onewland committed Oct 1, 2024
1 parent 5cce7a1 commit 5b4156d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions snuba/manual_jobs/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ def _set_job_status(job_id: str, status: JobStatus) -> JobStatus:

def get_job_status(job_id: str) -> Optional[JobStatus]:
redis_status = _redis_client.get(name=_build_job_status_key(job_id))
if redis_status is None:
return redis_status
else:
return JobStatus(redis_status.decode("utf-8"))
return JobStatus(redis_status.decode("utf-8")) if redis_status else redis_status


def list_job_specs(
Expand Down

0 comments on commit 5b4156d

Please sign in to comment.