Skip to content

Commit

Permalink
Review remarks
Browse files Browse the repository at this point in the history
Signed-off-by: Slimane AMAR <[email protected]>
  • Loading branch information
Slimane AMAR committed Oct 4, 2024
1 parent 2016ca3 commit 847ef2b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,11 @@ public String getVoltageLevelId() {

@Override
public ThreeSides getSide() {
int index = connectable.getTerminals().indexOf(this);
if (index < 0) {
int terminalIndex = connectable.getTerminals().indexOf(this);
if (terminalIndex < 0) {
throw new IllegalStateException();
}
return ThreeSides.valueOf(index + 1);
return ThreeSides.valueOf(terminalIndex + 1);
}

public void addNewRegulatingPoint(RegulatingPoint regulatingPoint) {
Expand Down

0 comments on commit 847ef2b

Please sign in to comment.