mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-02 23:31:41 +00:00
clippy
This commit is contained in:
parent
4b940431b2
commit
79cdb833b9
1 changed files with 2 additions and 2 deletions
|
@ -328,7 +328,7 @@ pub async fn purge_image_from_pictrs(image_url: &Url, context: &LemmyContext) ->
|
|||
.ok_or(LemmyErrorType::ImageUrlMissingLastPathSegment)?;
|
||||
|
||||
// Delete db row if any (old Lemmy versions didnt generate this).
|
||||
LocalImage::delete_by_alias(&mut context.pool(), &alias)
|
||||
LocalImage::delete_by_alias(&mut context.pool(), alias)
|
||||
.await
|
||||
.ok();
|
||||
|
||||
|
@ -361,7 +361,7 @@ pub async fn delete_image_from_pictrs(
|
|||
context: &LemmyContext,
|
||||
) -> LemmyResult<()> {
|
||||
// Delete db row if any (old Lemmy versions didnt generate this).
|
||||
LocalImage::delete_by_alias(&mut context.pool(), &alias)
|
||||
LocalImage::delete_by_alias(&mut context.pool(), alias)
|
||||
.await
|
||||
.ok();
|
||||
|
||||
|
|
Loading…
Reference in a new issue