Skip to content

Commit a1ebee5

Browse files
committed
Little refactor
1 parent 738bd67 commit a1ebee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpGitHooks/Application/Config/PreCommitConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private function getData()
4848
{
4949
$data = $this->configFileReader->getFileContents();
5050

51-
if (!$data) {
51+
if (empty($data)) {
5252
throw new Exception('php-git-hooks.yml file not found');
5353
}
5454

0 commit comments

Comments
 (0)