mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-09 02:24:46 +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)?;
|
.ok_or(LemmyErrorType::ImageUrlMissingLastPathSegment)?;
|
||||||
|
|
||||||
// Delete db row if any (old Lemmy versions didnt generate this).
|
// 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
|
.await
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
|
@ -361,7 +361,7 @@ pub async fn delete_image_from_pictrs(
|
||||||
context: &LemmyContext,
|
context: &LemmyContext,
|
||||||
) -> LemmyResult<()> {
|
) -> LemmyResult<()> {
|
||||||
// Delete db row if any (old Lemmy versions didnt generate this).
|
// 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
|
.await
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue