From f97ebb63782cb6ac681268651a2234e942b7e90a Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Thu, 11 Feb 2016 18:25:41 +0100 Subject: Reduce code complexity --- domains_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'domains_test.go') diff --git a/domains_test.go b/domains_test.go index ae849f46..0406617f 100644 --- a/domains_test.go +++ b/domains_test.go @@ -1,13 +1,13 @@ package main import ( - "testing" - "github.com/stretchr/testify/require" + "crypto/rand" "github.com/stretchr/testify/assert" - "time" + "github.com/stretchr/testify/require" "io/ioutil" - "crypto/rand" "os" + "testing" + "time" ) const updateFile = "shared/pages/.update" @@ -20,7 +20,7 @@ func TestReadProjects(t *testing.T) { require.NoError(t, err) var domains []string - for domain, _ := range d { + for domain := range d { domains = append(domains, domain) } -- cgit v1.2.3