Skip to content

Commit bdbcf8b

Browse files
authored
Merge pull request #14 from amirhshokri/refactor-app-running-with-job
Refactor boolean return for conciseness
2 parents f4ac33d + 390af8c commit bdbcf8b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/TopicDetector.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ private function getTopicByRoute(): string|null
7575
// Job function
7676
private function appRunningWithJob(): bool
7777
{
78-
if (isset($e->job) || app()->bound('queue.worker')) {
79-
return true;
80-
}
81-
82-
return false;
78+
return (isset($e->job) || app()->bound('queue.worker'));
8379
}
8480

8581
private function getJobClass(): string|null

0 commit comments

Comments
 (0)