Remove unnecessary variable initialisation

This isn't C++ or anything. Variable scope isn't limited by if statements.

Contributes to issue CURA-1278.
This commit is contained in:
Ghostkeeper 2016-05-23 13:28:04 +02:00
parent 83c1ea2ccc
commit ae6f4912e6

View file

@ -102,7 +102,6 @@ class CuraEngineBackend(Backend):
# \return list of commands and args / parameters. # \return list of commands and args / parameters.
def getEngineCommand(self): def getEngineCommand(self):
active_machine = Application.getInstance().getMachineManager().getActiveMachineInstance() active_machine = Application.getInstance().getMachineManager().getActiveMachineInstance()
json_path = ""
if not active_machine: if not active_machine:
json_path = Resources.getPath(Resources.MachineDefinitions, "fdmprinter.json") json_path = Resources.getPath(Resources.MachineDefinitions, "fdmprinter.json")
else: else: