From e3b79ea81e012cef427468dcfd295a99af87a2b6 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Thu, 8 Feb 2018 21:34:36 +0200 Subject: [PATCH] Don't set default commands. --- aiogram/dispatcher/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index dc378439..99b26e99 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -444,8 +444,6 @@ class Dispatcher: :param kwargs: :return: decorated function """ - if commands is None: - commands = [] if content_types is None: content_types = ContentType.TEXT if custom_filters is None: @@ -509,8 +507,6 @@ class Dispatcher: :param kwargs: :return: decorated function """ - if commands is None: - commands = [] if content_types is None: content_types = ContentType.TEXT if custom_filters is None: @@ -566,8 +562,6 @@ class Dispatcher: :param kwargs: :return: decorated function """ - if commands is None: - commands = [] if content_types is None: content_types = ContentType.TEXT if custom_filters is None: