Skip to content

Commit 6818188

Browse files
committed
Using equals()
1 parent 76336dd commit 6818188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/browserstack/local/Local.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void start(Map<String, String> options) throws Exception {
7979
}
8080
int r = proc.waitFor();
8181

82-
JSONObject obj = new JSONObject(stdout != "" ? stdout : stderr);
82+
JSONObject obj = new JSONObject(!stdout.equals("") ? stdout : stderr);
8383
if(!obj.getString("state").equals("connected")){
8484
throw new LocalException(obj.getString("message"));
8585
}

0 commit comments

Comments
 (0)