Skip to content

Commit 2d6f442

Browse files
committed
🐛 void function does not return
1 parent 27ce73a commit 2d6f442

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AuditableObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ protected function dispatchAudit(Auditable $model): void
101101

102102
$model->preloadResolverData();
103103
if (!Config::get('audit.queue.enable', false)) {
104-
return Auditor::execute($model);
104+
Auditor::execute($model);
105+
return;
105106
}
106107

107108
if (!$this->fireDispatchingAuditEvent($model)) {

0 commit comments

Comments
 (0)