Skip to content

Commit 7fcec43

Browse files
Update ResponseUtil.java
1 parent 63230ae commit 7fcec43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/zos/shell/utility/ResponseUtil.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package zos.shell.utility;
22

3+
import kong.unirest.core.json.JSONObject;
34
import org.slf4j.Logger;
45
import org.slf4j.LoggerFactory;
56
import zos.shell.constants.Constants;
@@ -40,8 +41,8 @@ public static String getResponsePhrase(final Response response) {
4041
if (response == null || response.getResponsePhrase().isEmpty()) {
4142
return null;
4243
}
43-
if (response.getResponsePhrase().get() instanceof JSONObject)
44-
&& "{}".equals(response.getResponsePhrase().get().toString())) {
44+
if (response.getResponsePhrase().get() instanceof JSONObject &&
45+
("{}".equals(response.getResponsePhrase().get().toString()))) {
4546
return "http status error code: " +
4647
(response.getStatusCode().isPresent() ? response.getStatusCode().getAsInt() : "") +
4748
", status text: " + response.getStatusText().orElse("") + ", response phrase: " +

0 commit comments

Comments
 (0)