Skip to content

Commit

Permalink
beatlabs#128 fix more linting
Browse files Browse the repository at this point in the history
Signed-off-by: Vangelis Katikaridis <[email protected]>
  • Loading branch information
drakos74 committed Apr 1, 2020
1 parent dabf8c8 commit cf0bdef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion component/http/cache_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (cb *RouteCacheBuilder) WithMetrics(metrics cacheMetrics) *RouteCacheBuilde
return cb
}

func (cb *RouteCacheBuilder) create(path string) (*routeCache, error) {
func (cb *RouteCacheBuilder) create() (*routeCache, error) {
if len(cb.errors) > 0 {
return nil, errs.Aggregate(cb.errors...)
}
Expand Down
2 changes: 1 addition & 1 deletion component/http/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

func TestMain(m *testing.M) {

err := log.Setup(zerolog.Create(log.Level(log.DebugLevel)), make(map[string]interface{}))
err := log.Setup(zerolog.Create(log.DebugLevel), make(map[string]interface{}))

if err != nil {
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion component/http/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (rb *RouteBuilder) Build() (Route, error) {
return Route{}, errors.New("cannot apply cache to a route with any method other than GET ")
}

rc, err := rb.routeCacheBuilder.create(rb.path)
rc, err := rb.routeCacheBuilder.create()
if err != nil {
return Route{}, fmt.Errorf("could not build cache from builder %v: %w", rb.routeCacheBuilder, err)
}
Expand Down

0 comments on commit cf0bdef

Please sign in to comment.