Skip to content

Commit

Permalink
Small fix remove unnecessary if_controlflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yichen88 committed Sep 29, 2017
1 parent 1a928c1 commit a60bc15
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import eu.itesla_project.iidm.ddb.model.SimulatorInst;
import eu.itesla_project.iidm.ddb.service.DDBManager;
import eu.itesla_project.iidm.network.Bus;
import eu.itesla_project.iidm.network.Identifiable;
import eu.itesla_project.iidm.network.ShuntCompensator;
import eu.itesla_project.modelica_export.ModExportContext;
Expand Down Expand Up @@ -37,11 +36,7 @@ public void createRecord(ModExportContext modContext, DDBManager ddbManager, Sim
this.addValue(EurostagFixedData.CONNECT);
this.addValue(super.nodeName1);

if (this.node1 instanceof Bus) {
this.addValue("." + StaticData.POSITIVE_PIN + ", ");
} else {
this.addValue("." + StaticData.POSITIVE_PIN + ", ");
}
this.addValue("." + StaticData.POSITIVE_PIN + ", ");

this.addValue(super.nodeName2);

Expand Down

0 comments on commit a60bc15

Please sign in to comment.