diff --git a/src/Project.php b/src/Project.php index 2544fa7..b62b295 100644 --- a/src/Project.php +++ b/src/Project.php @@ -126,9 +126,9 @@ class Project return coroutine(function () use ($uri) { $limit = 150000; $content = yield $this->contentRetriever->retrieve($uri); - $size = strlen($content); - if ($size > $limit) { - throw new ContentTooLargeException($uri, $size, $limit); + $size = strlen($content); + if ($size > $limit) { + throw new ContentTooLargeException($uri, $size, $limit); } if (isset($this->documents[$uri])) { $document = $this->documents[$uri];