From 18e6f9daa3899318d36b525b068837f49bc2c1cf Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Wed, 29 Nov 2017 02:24:31 +0100 Subject: all: simplification - no length for map initialization - don't check for boolean/error return - don't format string - use string method of bytes buffer instead of converting bytes to string - use `strings.Contains` instead of `strings.Index` - use `bytes.Equal` instead of `bytes.Compare` --- common_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common_test.go') diff --git a/common_test.go b/common_test.go index 36b03a7..f8f4e61 100644 --- a/common_test.go +++ b/common_test.go @@ -30,7 +30,7 @@ func (s *BaseSuite) SetUpSuite(c *C) { s.Suite.SetUpSuite(c) s.buildBasicRepository(c) - s.cache = make(map[string]*Repository, 0) + s.cache = make(map[string]*Repository) } func (s *BaseSuite) TearDownSuite(c *C) { -- cgit