Skip to content

Commit

Permalink
Merge pull request #4 from devdrops/develop
Browse files Browse the repository at this point in the history
Prevents that scan breaks due to deleted files.
  • Loading branch information
marcelsud committed Apr 1, 2015
2 parents 367149b + 7dc8028 commit 14f9641
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Melody/Diffcs/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@
class Executor
{
/**
* @var type
* @var type
*/
protected $owner;
/**
* @var type
* @var type
*/
protected $repository;
/**
* @var type
* @var type
*/
protected $accessToken;
/**
* @var \Github\Client
* @var \Github\Client
*/
protected $client;
/**
* @var \League\Flysystem\Filesystem
* @var \League\Flysystem\Filesystem
*/
protected $filesystem;
/**
* @var type
* @var type
*/
protected $progress;

Expand Down Expand Up @@ -132,7 +132,7 @@ public function downloadFiles($files, $commitId)
$downloadedFiles = [];

foreach ($files as $file) {
if (!preg_match('/src\/.*\.php$/', $file['filename'])) {
if (!preg_match('/src\/.*\.php$/', $file['filename'] || $file['status'] === "removed")) {
continue;
}

Expand Down

0 comments on commit 14f9641

Please sign in to comment.