Browse Source

Remove redundant respects_app_option check.

Ionel Cristian Mărieș 11 năm trước cách đây
mục cha
commit
938b0b8b97
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/bin/base.py

+ 1 - 1
celery/bin/base.py

@@ -427,7 +427,7 @@ class Command(object):
         if config:
             os.environ['CELERY_CONFIG_MODULE'] = config
         if self.respects_app_option:
-            if app and self.respects_app_option:
+            if app:
                 self.app = self.find_app(app)
             elif self.app is None:
                 self.app = self.get_app(loader=loader)