Skip to content

Commit

Permalink
Some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 10, 2016
1 parent cb9b7a0 commit 4515ba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ public int compare(String o1, String o2) {
// @attribute <li@list.sort_by_number[<tag>]>
// @returns dList
// @description
// returns a copy of the listed, sorted such that the lower numbers appear first, and the higher numbers appear last.
// returns a copy of the list, sorted such that the lower numbers appear first, and the higher numbers appear last.
// Rather than sorting based on the item itself, it sorts based on a tag attribute read from within the object being read.
// For example, you might sort a list of players based on the amount of money they have, via .sort_by_number[money] on the list of valid players.
// -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ public void webGet(final ScriptEntry scriptEntry, Element urlp) {

BufferedReader in = null;
try {
// Open a connection to the paste server
URL url = new URL(urlp.asString());
HttpURLConnection uc = (HttpURLConnection) url.openConnection();
uc.setDoInput(true);
uc.setDoOutput(true);
uc.setConnectTimeout(10000);
uc.setConnectTimeout(10000); // TODO: Option for this!
uc.connect();
in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
final StringBuilder sb = new StringBuilder();
Expand Down

0 comments on commit 4515ba6

Please sign in to comment.