Skip to content

Commit

Permalink
MAT-7689 removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecilia Liu committed Oct 4, 2024
1 parent 3b5cecb commit f1d9bfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public Measure createDraft(String id, String measureName, String model, String u
measureDraft.getGroups(),
id,
appConfigService.isFlagEnabled(MadieFeatureFlag.TEST_CASE_ID),
checkCaseNumberExists(measure.getTestCases(), id)));
checkCaseNumberExists(measure.getTestCases())));
var now = Instant.now();
measureDraft.setCreatedAt(now);
measureDraft.setLastModifiedAt(now);
Expand Down Expand Up @@ -393,7 +393,7 @@ private void savePackageData(Measure savedMeasure, byte[] packageData, String us
savedExport.getId());
}

private boolean checkCaseNumberExists(List<TestCase> testCases, String measureId) {
private boolean checkCaseNumberExists(List<TestCase> testCases) {
if (!CollectionUtils.isEmpty(testCases)) {
for (TestCase testCase : testCases) {
if (testCase.getCaseNumber() == null || testCase.getCaseNumber() == 0) {
Expand Down

0 comments on commit f1d9bfa

Please sign in to comment.