Skip to content

Commit

Permalink
Update Auditable.php
Browse files Browse the repository at this point in the history
Simplify the merge condition check
  • Loading branch information
gravitymedianet authored Sep 18, 2024
1 parent f0cbfbf commit dac39b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Auditable.php
Original file line number Diff line number Diff line change
@@ -144,8 +144,7 @@ protected function resolveAuditExclusions()
public function getAuditExclude(): array
{
if (
Config::get('audit.exclude_merge', false) ||
($this->auditExcludeMerge ?? false)
$this->auditExcludeMerge ?? Config::get('audit.exclude_merge', false)
) {
return array_merge($this->auditExclude ?? [], Config::get('audit.exclude', []));
}

0 comments on commit dac39b9

Please sign in to comment.