Skip to content

Commit

Permalink
useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Jun 1, 2024
1 parent b52b6fb commit 3c4132b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NutgramServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function register()
});

$this->app->resolving(Nutgram::class, function (Nutgram $bot, Application $app) {
if (config('nutgram.routes', false) && !$app->resolved($bot::class)) {
if (config('nutgram.routes', false)) {
(function () use ($bot) {
require file_exists($this->telegramRoutes) ? $this->telegramRoutes : self::ROUTES_PATH;
})();
Expand Down

0 comments on commit 3c4132b

Please sign in to comment.