Skip to content

Commit 8161885

Browse files
committed
Ruff fix
1 parent 4e8aad8 commit 8161885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/hopsworks/core/git_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def _status(self, repo_id):
347347

348348
status_dict = json.loads(git_op.command_result_message)
349349
file_status = None
350-
if status_dict is not None and type(status_dict["status"]) is list:
350+
if status_dict is not None and isinstance(status_dict["status"], list):
351351
file_status = []
352352
for status in status_dict["status"]:
353353
file_status.append(

0 commit comments

Comments
 (0)