File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/zos/shell/utility Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package zos .shell .utility ;
22
3+ import kong .unirest .core .json .JSONObject ;
34import org .slf4j .Logger ;
45import org .slf4j .LoggerFactory ;
56import 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: " +
You can’t perform that action at this time.
0 commit comments