don't initialize with None where it's not necessary

This commit is contained in:
xmatthias 2018-06-02 13:55:06 +02:00
parent d9e951447f
commit 32300f6d5f

View File

@ -51,9 +51,9 @@ class FreqtradeBot(object):
# Init objects # Init objects
self.config = config self.config = config
self.analyze = None self.analyze = Analyze(self.config)
self.fiat_converter = None self.fiat_converter = CryptoToFiatConverter()
self.rpc = None self.rpc: RPCManager = RPCManager(self)
self.persistence = None self.persistence = None
self.exchange = None self.exchange = None
@ -66,9 +66,6 @@ class FreqtradeBot(object):
:return: None :return: None
""" """
# Initialize all modules # Initialize all modules
self.analyze = Analyze(self.config)
self.fiat_converter = CryptoToFiatConverter()
self.rpc = RPCManager(self)
persistence.init(self.config, db_url) persistence.init(self.config, db_url)
exchange.init(self.config) exchange.init(self.config)