diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 20:25:41 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 20:25:41 +0300 |
commit | f97ebb63782cb6ac681268651a2234e942b7e90a (patch) | |
tree | 1d62c7ab28c41d9fc18db55bfda1a8fe52503828 /domains_test.go | |
parent | a5548d71b72b050df4d708953120af5f16dde39b (diff) |
Reduce code complexity
Diffstat (limited to 'domains_test.go')
-rw-r--r-- | domains_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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) } |