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
self.config = config
self.analyze = None
self.fiat_converter = None
self.rpc = None
self.analyze = Analyze(self.config)
self.fiat_converter = CryptoToFiatConverter()
self.rpc: RPCManager = RPCManager(self)
self.persistence = None
self.exchange = None
@ -66,9 +66,6 @@ class FreqtradeBot(object):
:return: None
"""
# Initialize all modules
self.analyze = Analyze(self.config)
self.fiat_converter = CryptoToFiatConverter()
self.rpc = RPCManager(self)
persistence.init(self.config, db_url)
exchange.init(self.config)