Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
burgesQ committed Jul 7, 2023
1 parent 1d21f3e commit 10b402c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion TODOs.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
# to archive to file: C-c C-x C-a
# open archive sibling: C-c C-tab

* WIP v5 [5/7] [71%]
* TODO v5 [6/11] [54%]
DEADLINE: <2023-06-11 Sun>

** DONE [#A] http2 [2/2] [100%]
CLOSED: [2023-07-07 Fri 14:30] DEADLINE: <2023-07-07 Fri>
*** DONE http2 server
CLOSED: [2023-07-06 Thu 13:21]
*** DONE stream payload
CLOSED: [2023-07-07 Fri 14:30]

** IDEA read header for translator
DEADLINE: <2024-05-11 Sat>
** TODO update the doc
Expand Down
2 changes: 0 additions & 2 deletions route.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func (s *Server) GetRouter() *router.Router {

// register routes
for p, rs := range s.meta.routes {

prefix, routes := p, rs // never sure if I should copy

var group *router.Group
Expand Down Expand Up @@ -285,7 +284,6 @@ func (s *Server) GetRouter() *router.Router {
} else {
group.Handle(route.Verbe, route.Path, s.CustomHandler(handler))
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (s *Server) IsReady() chan bool {
}

// AddHandlers register the Handler handlers. Handler are executed from the top most.
func (s *Server) addHandlers(h ...Handler) *Server {
func (s *Server) addHandlers(h ...Handler) *Server { //nolint: unparam
s.meta.handlers = append(s.meta.handlers, h...)

return s
Expand Down

0 comments on commit 10b402c

Please sign in to comment.