Skip to content

Commit 39a6f40

Browse files
author
Dingane Hlaluku
committed
Removing isEmpty() method
1 parent 4c20167 commit 39a6f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/diagnostics/ExecuteDiagnosticsCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void execute() throws ResourceUnavailableException, InsufficientCapacityE
134134
ExecuteDiagnosticsResponse response = new ExecuteDiagnosticsResponse();
135135
try {
136136
final Map<String, String> answerMap = diagnosticsService.runDiagnosticsCommand(this);
137-
if (answerMap != null || !answerMap.isEmpty()) {
137+
if (answerMap != null) {
138138
response.setStdout(answerMap.get("STDOUT"));
139139
response.setStderr(answerMap.get("STDERR"));
140140
response.setExitCode(answerMap.get("EXITCODE"));

0 commit comments

Comments
 (0)