Skip to content

Commit

Permalink
chore: remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
andylizf committed Nov 4, 2024
1 parent e0f1744 commit ea12233
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sky/serve/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,6 @@ def tail_logs(
"""
if isinstance(target, str):
target = serve_utils.ServiceComponent(target)
if not isinstance(target, serve_utils.ServiceComponent):
with ux_utils.print_exception_no_traceback():
raise ValueError(f'`target` must be a string or '
f'sky.serve.ServiceComponent, got {type(target)}.')
if target == serve_utils.ServiceComponent.REPLICA:
if replica_id is None:
with ux_utils.print_exception_no_traceback():
Expand Down

0 comments on commit ea12233

Please sign in to comment.