Skip to content

Commit

Permalink
Refactor ProcessListChangedSubscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Dec 29, 2024
1 parent 46119f2 commit 07ef6d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void execute(final ConnectionSession connectionSession) {

private QueryResult getQueryResult() {
Collection<Process> processes = ProxyContext.getInstance().getContextManager().getPersistServiceFacade().getProcessPersistService().getProcessList();
if (null == processes || processes.isEmpty()) {
if (processes.isEmpty()) {
return new RawMemoryQueryResult(queryResultMetaData, Collections.emptyList());
}
List<MemoryQueryResultDataRow> rows = processes.stream().map(this::getMemoryQueryResultDataRow).collect(Collectors.toList());
Expand Down

0 comments on commit 07ef6d0

Please sign in to comment.