aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plumbing/transport/ssh/common_test.go4
-rw-r--r--storage/memory/storage.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/plumbing/transport/ssh/common_test.go b/plumbing/transport/ssh/common_test.go
index faa0503..6e76096 100644
--- a/plumbing/transport/ssh/common_test.go
+++ b/plumbing/transport/ssh/common_test.go
@@ -49,7 +49,7 @@ func (s *SuiteCommon) TestDefaultSSHConfig(c *C) {
}()
DefaultSSHConfig = &mockSSHConfig{map[string]map[string]string{
- "github.com": map[string]string{
+ "github.com": {
"Hostname": "foo.local",
"Port": "42",
},
@@ -82,7 +82,7 @@ func (s *SuiteCommon) TestDefaultSSHConfigWildcard(c *C) {
}()
DefaultSSHConfig = &mockSSHConfig{Values: map[string]map[string]string{
- "*": map[string]string{
+ "*": {
"Port": "42",
},
}}
diff --git a/storage/memory/storage.go b/storage/memory/storage.go
index 0f66f1e..2e32509 100644
--- a/storage/memory/storage.go
+++ b/storage/memory/storage.go
@@ -165,7 +165,7 @@ func (o *ObjectStorage) Begin() storer.Transaction {
}
func (o *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error {
- for h, _ := range o.Objects {
+ for h := range o.Objects {
err := fun(h)
if err != nil {
if err == storer.ErrStop {