Browse Source

Delete dublicated method

pull/7980/head
Vladyslav_Prykhodko 3 years ago
parent
commit
baade28170
  1. 7
      application/src/main/java/org/thingsboard/server/controller/plugin/TbWebSocketHandler.java

7
application/src/main/java/org/thingsboard/server/controller/plugin/TbWebSocketHandler.java

@ -495,9 +495,4 @@ public class TbWebSocketHandler extends TextWebSocketHandler implements WebSocke
.map(TenantProfile::getDefaultProfileConfiguration).orElse(null);
}
private DefaultTenantProfileConfiguration getTenantProfileConfiguration(WebSocketSessionRef sessionRef) {
return Optional.ofNullable(tenantProfileCache.get(sessionRef.getSecurityCtx().getTenantId()))
.map(TenantProfile::getDefaultProfileConfiguration).orElse(null);
}
}
}

Loading…
Cancel
Save