mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Refactor findNull to find
This commit is contained in:
@@ -105,12 +105,7 @@ class RuleRepository implements RuleRepositoryInterface
|
||||
*/
|
||||
public function find(int $ruleId): ?Rule
|
||||
{
|
||||
$rule = $this->user->rules()->find($ruleId);
|
||||
if (null === $rule) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $rule;
|
||||
return $this->user->rules()->find($ruleId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user