Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Jul 10, 2024
1 parent b92a81e commit 8039627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public function boot(): void
});

// Don't run any health checks during tests
if (config('app.env') !== 'testing') {
if (!app()->runningUnitTests()) {
Health::checks([
DebugModeCheck::new()->unless(app()->environment('local')),
DebugModeCheck::new()->if(app()->isProduction()),
EnvironmentCheck::new(),
CacheCheck::new(),
DatabaseCheck::new(),
Expand Down

0 comments on commit 8039627

Please sign in to comment.