Skip to content

Commit

Permalink
✏️ typo: updating telescope_enabled variable
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
  • Loading branch information
mhkarimi1383 committed Sep 9, 2024
1 parent 4a0d6ad commit 7663ac3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Telescope.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ public static function isEnabled()
}
$telescope_enabled = true;
if (! config('telescope.enabled')) {
return false;
$telescope_enabled = false;
}
if (config('telescope.sample_rate') < rand(0, 100)) {
return false;
else if (config('telescope.sample_rate') < rand(0, 100)) {
return $telescope_enabled = false;
}
Context::add('telescope_enabled', $telescope_enabled);

Expand Down

0 comments on commit 7663ac3

Please sign in to comment.