Skip to content

Commit

Permalink
fixes some lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zanuka committed May 30, 2018
1 parent e65cab1 commit 39d0e79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/conf/appconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type AppConfig struct {
Coins []Coins `json:"coins"`
}

// Coins defines structure of supported coin data
type Coins struct {
DaemonVersion string `json:"daemonVersion"`
CurrencyCode string `json:"currencyCode"`
Expand Down
8 changes: 0 additions & 8 deletions app/daemon/daemonapi/vars.go

This file was deleted.

5 changes: 4 additions & 1 deletion app/middleware/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ type Adapter func(http.Handler) http.Handler
// and return a new (wrapped) http.Handler to use in its place
// To make the adapters run in the order in which they are specified
// you could reverse through them in the Adapt function

// in essence, this middleware allows us to run code before
// and/or after our handler code in a HTTP request lifecycle

// Adapt function iterates over all adapters
// calling them one by one (in reverse order) in a chained manner
// returning the result of the first adapter.
func Adapt(h http.Handler, adapters ...Adapter) http.Handler {
for _, adapter := range adapters {
h = adapter(h)
Expand Down

0 comments on commit 39d0e79

Please sign in to comment.