diff --git a/lib/private/FilesMetadata/Listener/MetadataUpdate.php b/lib/private/FilesMetadata/Listener/MetadataUpdate.php index 9f544fbe34fc6..4d282ce0eaa4e 100644 --- a/lib/private/FilesMetadata/Listener/MetadataUpdate.php +++ b/lib/private/FilesMetadata/Listener/MetadataUpdate.php @@ -47,7 +47,7 @@ public function __construct( * @param Event $event */ public function handle(Event $event): void { - if (!($event instanceof NodeCreatedEvent) && !($event instanceof NodeWrittenEvent)) { + if (!($event instanceof NodeWrittenEvent)) { return; }