Skip to content

Commit

Permalink
fix: analyse code
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 24, 2023
1 parent 5cfa8b4 commit 14c559e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/TelegramGitNotifierServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function boot(): void
], 'config_jsons');

$jsonsPath = config('telegram-git-notifier.data_file.storage_folder');
if (file_exists($jsonsPath)) {
if (is_string($jsonsPath) && file_exists($jsonsPath)) {
exec("chown -R www-data:www-data $jsonsPath");
}
}
Expand Down

0 comments on commit 14c559e

Please sign in to comment.