Skip to content

Commit 33c78b6

Browse files
authored
Fix temporary limit modification (#93)
Signed-off-by: Hugo Marcellin <[email protected]>
1 parent 3f4156a commit 33c78b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gridsuite/modification/modifications/AbstractBranchModification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ protected void modifyTemporaryLimits(OperationalLimitsGroupModificationInfos ope
414414
boolean isThisLimitDeleted = isThisLimitDeleted(currentLimitsInfos.getTemporaryLimits(), limitAcceptableDuration);
415415
if (isThisLimitDeleted) {
416416
limitToModify = null;
417-
} else {
417+
} else if (TemporaryLimitModificationType.ADD.equals(limit.getModificationType())) {
418418
throw new PowsyblException("2 temporary limits have the same duration " + limitAcceptableDuration);
419419
}
420420
}

0 commit comments

Comments
 (0)