From 5dc8ddddb5f6a3ee044617eb36dec982b2ff44b9 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 4 Jan 2017 22:48:50 +0100 Subject: [PATCH] Fix: GoSimple linter warning --- Makefile | 3 +++ main.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 {