mirror of
https://github.com/usememos/memos.git
synced 2025-02-28 15:24:19 +08:00
chore: fix resource tests
This commit is contained in:
parent
ac81d856f6
commit
dca712d273
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ func (s *Store) DeleteResource(ctx context.Context, delete *DeleteResource) erro
|
|||
if err != nil {
|
||||
return errors.Wrap(err, "failed to get resource")
|
||||
}
|
||||
if resource == nil {
|
||||
return errors.Wrap(nil, "resource not found")
|
||||
}
|
||||
|
||||
// Delete the local file.
|
||||
if resource.InternalPath != "" {
|
||||
|
|
Loading…
Reference in a new issue