Skip to content

Commit 115db15

Browse files
Coderabbit comments addressed
1 parent c050ae8 commit 115db15

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/main/java/com/iemr/tm/service/registrar/RegistrarServiceImpl.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -675,23 +675,18 @@ public String registerBeneficiary(String comingRequest, String Authorization) th
675675
BeneficiaryFlowStatus obj = InputMapper.gson().fromJson(comingRequest, BeneficiaryFlowStatus.class);
676676
if (obj != null && obj.getIsMobile() != null && obj.getIsMobile()) {
677677
responseMap.put("response", "Beneficiary successfully registered");
678-
679678
response1.setResponse(new Gson().toJson(responseMap));
680679

681680
} else {
682681
int i = commonBenStatusFlowServiceImpl.createBenFlowRecord(comingRequest, beneficiaryRegID,
683682
beneficiaryID);
684683

685684
if (i > 0) {
686-
if (i == 1) {
687-
responseMap.put("response", "Beneficiary successfully registered");
688-
response1.setResponse(new Gson().toJson(responseMap));
689-
}
685+
responseMap.put("response", "Beneficiary successfully registered");
686+
response1.setResponse(new Gson().toJson(responseMap));
690687

691688
} else {
692689
response1.setError(5000, "Error in registration; please contact administrator");
693-
// log error that beneficiaryID generated but flow part is not
694-
// done successfully.
695690
}
696691
}
697692
} else {

0 commit comments

Comments
 (0)