fix: linting errors
This commit was merged in pull request #314.
This commit is contained in:
@@ -26,6 +26,7 @@ linters:
|
|||||||
- bodyclose # i don't care in the tests, the implementation itself doesn't do http requests
|
- bodyclose # i don't care in the tests, the implementation itself doesn't do http requests
|
||||||
- wsl_v5
|
- wsl_v5
|
||||||
- noinlineerr
|
- noinlineerr
|
||||||
|
- unqueryvet
|
||||||
settings:
|
settings:
|
||||||
nestif:
|
nestif:
|
||||||
min-complexity: 6
|
min-complexity: 6
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package middleware
|
|||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
||||||
// Chain list of handlers together.
|
// Wrapper wraps a list of handlers together.
|
||||||
func Wrapper(next http.Handler, handlers ...func(http.Handler) http.Handler) http.Handler {
|
func Wrapper(next http.Handler, handlers ...func(http.Handler) http.Handler) http.Handler {
|
||||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
lastHandler := next
|
lastHandler := next
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
// At the center of the application is the transaction.
|
// Transaction is at the center of the application.
|
||||||
//
|
//
|
||||||
// Every piece of data should be calculated based on transactions.
|
// Every piece of data should be calculated based on transactions.
|
||||||
// This means potential calculation errors can be fixed later in time.
|
// This means potential calculation errors can be fixed later in time.
|
||||||
|
|||||||
Reference in New Issue
Block a user