diff --git a/Makefile b/Makefile index 6b257e3..74d53d4 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,6 @@ ci: curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh bash golang.sh + +test: + gometalinter --deadline 20s --cyclo-over=15 diff --git a/main.go b/main.go index c7958c6..60841e6 100644 --- a/main.go +++ b/main.go @@ -153,7 +153,7 @@ func getSecretsFromVault() ([]token, error) { } } - scanPool = scanPool[1:len(scanPool)] + scanPool = scanPool[1:] } } else {