Commit 4be04d4a authored by Jack'lul's avatar Jack'lul

No need for isset() check here

parent b64095fd
......@@ -841,7 +841,7 @@ class Telegram
*/
public function runCommands($commands, array $update = [])
{
if (!isset($commands) || !is_array($commands)) {
if (!is_array($commands)) {
throw new TelegramException('No command(s) provided!');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment