Skip to content

Commit

Permalink
Fix the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshao committed Dec 30, 2024
1 parent 01af9a6 commit 8fb1a67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ public void linkModelVersion(
checkModelNameIdentifier(ident);

ModelVersionLinkRequest req = new ModelVersionLinkRequest(uri, aliases, comment, properties);
req.validate();

NameIdentifier modelFullIdent = modelFullNameIdentifier(ident);
BaseResponse resp =
restClient.post(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def validate(self):

for alias in self._aliases or []:
if not self._is_not_blank(alias):
raise IllegalArgumentException('Alias must not be null or empty')
raise IllegalArgumentException("Alias must not be null or empty")

def _is_not_blank(self, string: str) -> bool:
return string is not None and string.strip()

0 comments on commit 8fb1a67

Please sign in to comment.