Skip to content

Commit fe6b02c

Browse files
committed
Fix reviewer client pre-commit failures
Signed-off-by: Elanchezhian <chezhipower@gmail.com>
1 parent 55e4683 commit fe6b02c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ repos:
7373
additional_dependencies: [types-PyYAML,types-filelock,types-requests,types-docutils,types-cachetools]
7474

7575
- repo: https://github.com/asottile/pyupgrade
76-
rev: v3.20.0
76+
rev: v3.21.2
7777
hooks:
7878
- id: pyupgrade
7979
args: [--py37-plus]

sample-apps/reviewer/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def ping(self) -> bool:
7373
"""Check if server is reachable."""
7474
try:
7575
response = requests.get(f"{self.server_url}", timeout=5)
76-
status = cast(int, response.status_code) == 200
76+
status = response.status_code == 200
7777
if status:
7878
logger.info(f"✓ Connected to server: {self.server_url}")
7979
else:

0 commit comments

Comments
 (0)