Fix sonar issues :
[aai/sparky-be.git] / sparkybe-onap-service / src / main / java / org / onap / aai / sparky / security / portal / PortalRestAPIServiceImpl.java
index 7a71fbc..68c833e 100644 (file)
@@ -93,7 +93,7 @@ public class PortalRestAPIServiceImpl implements IPortalRestAPIService {
   public void editUser(String loginId, EcompUser user) throws PortalAPIException {
     LOG.debug("Edit user [loginId:" + loginId + "]");
 
-    userManager.getUser(loginId).orElseThrow(() -> {
+    EcompUser eUser = userManager.getUser(loginId).orElseThrow(() -> {
       String message = getMessage(ERROR_MESSAGE, "edit", loginId) + ", unknown user";
       LOG.error(message);
       return new PortalAPIException(message);