Skip to content

Commit

Permalink
fix ruff error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln Stein committed Mar 17, 2024
1 parent a17021b commit a0420d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def delete(self, key: str) -> None: # noqa D102
"""Unregister the model. Delete its files only if they are within our models directory."""
model = self.record_store.get_model(key)
models_dir = self.app_config.models_path
model_path = models_dir / Path(model.path) # handle legacy relative model paths
model_path = models_dir / Path(model.path) # handle legacy relative model paths
if model_path.is_relative_to(models_dir):
self.unconditionally_delete(key)
else:
Expand Down

0 comments on commit a0420d1

Please sign in to comment.