Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-11 20:25:41 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-11 20:25:41 +0300
commitf97ebb63782cb6ac681268651a2234e942b7e90a (patch)
tree1d62c7ab28c41d9fc18db55bfda1a8fe52503828 /domains_test.go
parenta5548d71b72b050df4d708953120af5f16dde39b (diff)
Reduce code complexity
Diffstat (limited to 'domains_test.go')
-rw-r--r--domains_test.go10
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)
}