remove gosimple offences

This commit is contained in:
Christoph Mertz 2021-02-19 17:01:54 +01:00
parent e4f6eae348
commit 65968cf540
7 changed files with 7 additions and 7 deletions

View file

@ -55,7 +55,7 @@ type Opts struct {
func New(schemaLocations []string, opts Opts) (Validator, error) {
// Default to our kubernetes-json-schema fork
// raw.githubusercontent.com is frontend by Fastly and very fast
if schemaLocations == nil || len(schemaLocations) == 0 {
if len(schemaLocations) == 0 {
schemaLocations = []string{"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json"}
}