Skip to content

Commit 8ce364e

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: don't show object size warning if we can't determine the object size
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 767db64 commit 8ce364e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/Command/Info/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function outputStorageDetails(IMountPoint $mountPoint, Node $node, Input
176176
}
177177
$stat = fstat($fh);
178178
fclose($fh);
179-
if ($stat['size'] !== $node->getSize()) {
179+
if (isset($stat['size']) && $stat['size'] !== $node->getSize()) {
180180
$output->writeln(' <error>warning: object had a size of ' . $stat['size'] . ' but cache entry has a size of ' . $node->getSize() . '</error>. This should have been automatically repaired');
181181
}
182182
} catch (\Exception $e) {

0 commit comments

Comments
 (0)