Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Mar 28, 2024
1 parent cec517b commit 617f1b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func getVersionCmd() *cobra.Command {
versionCmd := &cobra.Command{
Use: "version",
Short: "Print binary version information",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
verInfo := versionInfo{
Version: Version,
Commit: Commit,
Expand Down
2 changes: 1 addition & 1 deletion oracle/types/currency.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func MapPairsToSlice(mapPairs map[string]CurrencyPair) []CurrencyPair {
return currencyPairs
}

func (cp CurrencyPair) MarshalText() (text []byte, err error) {
func (cp CurrencyPair) MarshalText() ([]byte, error) {
type noMethod CurrencyPair
return json.Marshal(noMethod(cp))
}
Expand Down
8 changes: 4 additions & 4 deletions router/v1/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (r *Router) RegisterRoutes(rtr *mux.Router, prefix string) {
}

func (r *Router) healthzHandler() http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
return func(w http.ResponseWriter, _ *http.Request) {
resp := HealthZResponse{
Status: StatusAvailable,
}
Expand All @@ -101,7 +101,7 @@ func (r *Router) healthzHandler() http.HandlerFunc {
}

func (r *Router) pricesHandler() http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
return func(w http.ResponseWriter, _ *http.Request) {
resp := PricesResponse{
Prices: r.oracle.GetPrices(),
}
Expand All @@ -111,7 +111,7 @@ func (r *Router) pricesHandler() http.HandlerFunc {
}

func (r *Router) candlePricesHandler() http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
return func(w http.ResponseWriter, _ *http.Request) {
resp := PricesPerProviderResponse{
Prices: r.oracle.GetTvwapPrices(),
}
Expand All @@ -121,7 +121,7 @@ func (r *Router) candlePricesHandler() http.HandlerFunc {
}

func (r *Router) tickerPricesHandler() http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
return func(w http.ResponseWriter, _ *http.Request) {
resp := PricesPerProviderResponse{
Prices: r.oracle.GetVwapPrices(),
}
Expand Down

0 comments on commit 617f1b5

Please sign in to comment.