Browse Source

Add a `fmt` target to the Makefile

Fix some super minor comments
Kyle Conroy 12 years ago
parent
commit
975f27967e

+ 3 - 0
Makefile

@@ -10,6 +10,9 @@ deps:
 server: deps
 server: deps
 	go install -tags '$(BUILDTAGS)' main/ngrokd
 	go install -tags '$(BUILDTAGS)' main/ngrokd
 
 
+fmt:
+	go fmt ngrok/...
+
 client: deps
 client: deps
 	go install -tags '$(BUILDTAGS)' main/ngrok
 	go install -tags '$(BUILDTAGS)' main/ngrok
 
 

+ 1 - 1
src/ngrok/client/views/term/view.go

@@ -1,4 +1,4 @@
-/* 
+/*
    interactive terminal interface for local clients
    interactive terminal interface for local clients
 */
 */
 package term
 package term

+ 1 - 1
src/ngrok/client/views/web/static/debug.go

@@ -11,7 +11,7 @@ import (
 var assetDir string
 var assetDir string
 
 
 func init() {
 func init() {
-	// find the directory with the assets. 
+	// find the directory with the assets.
 	// this doesn't work if you:
 	// this doesn't work if you:
 	// 1. move the binary
 	// 1. move the binary
 	// 2. put ngrok in your PATH
 	// 2. put ngrok in your PATH

+ 2 - 2
src/ngrok/proto/http.go

@@ -70,7 +70,7 @@ func (h *Http) readRequests(tee *conn.Tee, lastTxn chan *HttpTxn) {
 		}
 		}
 
 
 		// make sure we read the body of the request so that
 		// make sure we read the body of the request so that
-		// we don't block the writer 
+		// we don't block the writer
 		_, err = httputil.DumpRequest(req, true)
 		_, err = httputil.DumpRequest(req, true)
 
 
 		h.reqMeter.Mark(1)
 		h.reqMeter.Mark(1)
@@ -100,7 +100,7 @@ func (h *Http) readResponses(tee *conn.Tee, lastTxn chan *HttpTxn) {
 			break
 			break
 		}
 		}
 		// make sure we read the body of the response so that
 		// make sure we read the body of the response so that
-		// we don't block the reader 
+		// we don't block the reader
 		_, _ = httputil.DumpResponse(resp, true)
 		_, _ = httputil.DumpResponse(resp, true)
 
 
 		txn.Resp = &HttpResponse{Response: resp}
 		txn.Resp = &HttpResponse{Response: resp}