Commit dca712d2 authored by Steven's avatar Steven

chore: fix resource tests

parent ac81d856
...@@ -89,6 +89,9 @@ func (s *Store) DeleteResource(ctx context.Context, delete *DeleteResource) erro ...@@ -89,6 +89,9 @@ func (s *Store) DeleteResource(ctx context.Context, delete *DeleteResource) erro
if err != nil { if err != nil {
return errors.Wrap(err, "failed to get resource") return errors.Wrap(err, "failed to get resource")
} }
if resource == nil {
return errors.Wrap(nil, "resource not found")
}
// Delete the local file. // Delete the local file.
if resource.InternalPath != "" { if resource.InternalPath != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment