Skip to content

Commit 14c559e

Browse files
committed
fix: analyse code
1 parent 5cfa8b4 commit 14c559e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/TelegramGitNotifierServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function boot(): void
4343
], 'config_jsons');
4444

4545
$jsonsPath = config('telegram-git-notifier.data_file.storage_folder');
46-
if (file_exists($jsonsPath)) {
46+
if (is_string($jsonsPath) && file_exists($jsonsPath)) {
4747
exec("chown -R www-data:www-data $jsonsPath");
4848
}
4949
}

0 commit comments

Comments
 (0)