Skip to content

Commit

Permalink
CB-3839. Remove comments, fixed checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisSinelnikov committed Sep 18, 2023
1 parent 7c1b4fc commit d9167df
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,25 +961,25 @@ protected <T> T doProjectOperation(String projectId, RMFileOperation<T> operatio

protected <T> T doFileReadOperation(String projectId, Path file, RMFileOperation<T> operation) throws DBException {
for (RMFileOperationHandler fileHandler : fileHandlers) {
// try {
// fileHandler.beforeFileRead(projectId, file);
// } catch (Exception e) {
if (credentialsProvider.getActiveUserCredentials() != null) {
WebAppUtils.getWebApplication().getEventController().addEvent(
new WSErrorEvent(
WSEventType.SESSION_LOG_MESSAGE_ADDED,
credentialsProvider.getActiveUserCredentials().getSmSessionId(),
credentialsProvider.getActiveUserCredentials().getUserId(),
"123")); //e.getMessage()));
} else {
WebAppUtils.getWebApplication().getEventController().addEvent(
new WSErrorEvent(
WSEventType.SESSION_LOG_MESSAGE_ADDED,
"123")); //e.getMessage()));
try {
fileHandler.beforeFileRead(projectId, file);
} catch (Exception e) {
if (credentialsProvider.getActiveUserCredentials() != null) {
WebAppUtils.getWebApplication().getEventController().addEvent(
new WSErrorEvent(
WSEventType.SESSION_LOG_MESSAGE_ADDED,
credentialsProvider.getActiveUserCredentials().getSmSessionId(),
credentialsProvider.getActiveUserCredentials().getUserId(),
e.getMessage()));
} else {
WebAppUtils.getWebApplication().getEventController().addEvent(
new WSErrorEvent(
WSEventType.SESSION_LOG_MESSAGE_ADDED,
e.getMessage()));
}
log.error("Error before file reading", e);
}
}
// log.error("Error before file reading", e);
// }
return operation.doOperation();
}

Expand Down

0 comments on commit d9167df

Please sign in to comment.