Skip to content

Commit adf28dd

Browse files
committed
CLEANUP: Tweak comments.
1 parent cb87635 commit adf28dd

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013 Jonathan Novak
3+
Copyright (c) 2014 Jonathan Novak
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ TODO:
22
- Investigate sync.Pool
33
- Investigate using julian's router.
44
- Head middleware?
5-
- Address TODOs
5+
- investigate http.Hijacker and http.Flusher

router_serve.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"runtime"
88
)
99

10-
// TODO: normalize the exportedness
1110
type middlewareClosure struct {
1211
appResponseWriter
1312
Request
@@ -20,7 +19,7 @@ type middlewareClosure struct {
2019
Next NextMiddlewareFunc
2120
}
2221

23-
// This is the entry point for servering all requests
22+
// This is the entry point for servering all requests.
2423
func (rootRouter *Router) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
2524

2625
// Manually create a closure. These variables are needed in middlewareStack.

tree.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ func (pn *pathNode) addInternal(segments []string, route *route, wildcards []str
6060
regexps = nil
6161
}
6262
pn.leaves = append(pn.leaves, &pathLeaf{route: route, wildcards: wildcards, regexps: regexps})
63-
// TODO: ? detect if we have duplicate leaves. (eg, 2 routes that are exactly the same)
6463
} else { // len(segments) >= 1
6564
seg := segments[0]
6665
wc, wcName, wcRegexpStr := isWildcard(seg)

0 commit comments

Comments
 (0)