File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
ParseLiveQuery/src/main/java/com/parse Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 53
53
54
54
private static URI getDefaultUri () {
55
55
URL serverUrl = ParseRESTCommand .server ;
56
- if (serverUrl != null ) {
57
- String url = serverUrl .toString ();
58
- if (serverUrl .getProtocol ().equals ("https" )) {
59
- url = url .replaceFirst ("https" , "wss" );
60
- } else {
61
- url = url .replaceFirst ("http" , "ws" );
62
- }
63
- try {
64
- return new URI (url );
65
- } catch (URISyntaxException e ) {
66
- e .printStackTrace ();
67
- throw new RuntimeException (e .getMessage ());
68
- }
56
+ if (serverUrl == null ) return null ;
57
+ String url = serverUrl .toString ();
58
+ if (serverUrl .getProtocol ().equals ("https" )) {
59
+ url = url .replaceFirst ("https" , "wss" );
60
+ } else {
61
+ url = url .replaceFirst ("http" , "ws" );
62
+ }
63
+ try {
64
+ return new URI (url );
65
+ } catch (URISyntaxException e ) {
66
+ e .printStackTrace ();
67
+ throw new RuntimeException (e .getMessage ());
69
68
}
70
- return null ;
71
69
}
72
70
73
71
@ Override
You can’t perform that action at this time.
0 commit comments