mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add return to complete promise rejection (#17335)
This commit is contained in:
@@ -139,7 +139,10 @@ export class FilesService extends ItemsService {
|
||||
pipeline(
|
||||
stream,
|
||||
sharp().metadata(async (err, sharpMetadata) => {
|
||||
if (err) reject(err);
|
||||
if (err) {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
|
||||
const metadata: Metadata = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user