commit e992fc9f441e3dd71ff6ac3e11aa9c27361a5abc Author: David Fifield david@bamsoftware.com Date: Fri May 31 09:53:35 2013 -0700
Opening brace position. --- proxy/flashproxy.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js index c3e6305..07a94ea 100644 --- a/proxy/flashproxy.js +++ b/proxy/flashproxy.js @@ -668,8 +668,7 @@ function FlashProxy() { function ProxyPair(client_addr, relay_addr, rate_limit) { var MAX_BUFFER = 10 * 1024 * 1024;
- function log(s) - { + function log(s) { puts(s) }
@@ -689,8 +688,7 @@ function ProxyPair(client_addr, relay_addr, rate_limit) {
/* Return a function that shows an error message and closes the other half of a communication pair. */ - this.make_onerror_callback = function(partner) - { + this.make_onerror_callback = function(partner) { return function(event) { var ws = event.target;
@@ -747,13 +745,11 @@ function ProxyPair(client_addr, relay_addr, rate_limit) { this.relay_s.onmessage = this.onmessage_relay_to_client; };
- function is_open(ws) - { + function is_open(ws) { return ws.readyState === ws.OPEN; }
- function is_closed(ws) - { + function is_closed(ws) { return ws.readyState === ws.CLOSED; }
tor-commits@lists.torproject.org