Skip to content

Commit 686c671

Browse files
committed
refactor: remove french and use String.format
1 parent 53200d6 commit 686c671

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/fr/insee/genesis/domain/service/extraction/LastJsonExtractionService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public LastJsonExtractionService(LastJsonExtractionPersistencePort extractionPer
2424

2525
@Override
2626
public void recordDate(LastJsonExtractionModel extraction) {
27-
// Crée un id unique à partir du questionnaire et du mode
28-
extraction.setId(extraction.getQuestionnaireModelId() + "_" + extraction.getMode());
27+
// Create a unique ID based on the questionnaire and the mode.
28+
extraction.setId(String.format("%s_%s",extraction.getQuestionnaireModelId(),extraction.getMode()));
2929

30-
// save() fait insert si id inexistant ou update sinon
30+
// save() does an insert if the id doesn't exist, otherwise an update
3131
extractionPersistencePort.save(extraction);
3232
}
3333

0 commit comments

Comments
 (0)