Skip to content

Commit f974ad5

Browse files
Merge pull request #479 from gliderlabs/mh/chore/human-readable-comments
use // + space for all human readable comments
2 parents 40d654a + 29ca29e commit f974ad5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

router/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (rm *RouteManager) Add(route *Route) error {
140140
}
141141
route.closer = make(chan struct{})
142142
route.adapter = adapter
143-
//Stop any existing route with this ID:
143+
// Stop any existing route with this ID:
144144
if rm.routes[route.ID] != nil {
145145
rm.routes[route.ID].closer <- struct{}{}
146146
}

router/routes_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ func TestRouterGetAll(t *testing.T) {
3232
func TestRouterNoDuplicateIds(t *testing.T) {
3333
AdapterFactories.Register(newDummyAdapter, "syslog")
3434

35-
//Mock "running" so routes actually start running when added.
35+
// Mock "running" so routes actually start running when added.
3636
Routes.routing = true
3737

38-
//Start the first route.
38+
// Start the first route.
3939
route1 := &Route{
4040
ID: "abc",
4141
Address: "someUrl",
@@ -45,7 +45,7 @@ func TestRouterNoDuplicateIds(t *testing.T) {
4545
t.Error("Error adding route:", err)
4646
}
4747

48-
//Start a second route with the same ID.
48+
// Start a second route with the same ID.
4949
var route2 = &Route{
5050
ID: "abc",
5151
Address: "someUrl2",

0 commit comments

Comments
 (0)