Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 8c24b1b

Browse files
committed
gofmt -s
Signed-off-by: Máximo Cuadros <[email protected]>
1 parent 834cd6f commit 8c24b1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plumbing/transport/ssh/common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (s *SuiteCommon) TestDefaultSSHConfig(c *C) {
4949
}()
5050

5151
DefaultSSHConfig = &mockSSHConfig{map[string]map[string]string{
52-
"github.com": map[string]string{
52+
"github.com": {
5353
"Hostname": "foo.local",
5454
"Port": "42",
5555
},
@@ -82,7 +82,7 @@ func (s *SuiteCommon) TestDefaultSSHConfigWildcard(c *C) {
8282
}()
8383

8484
DefaultSSHConfig = &mockSSHConfig{Values: map[string]map[string]string{
85-
"*": map[string]string{
85+
"*": {
8686
"Port": "42",
8787
},
8888
}}

storage/memory/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (o *ObjectStorage) Begin() storer.Transaction {
165165
}
166166

167167
func (o *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error {
168-
for h, _ := range o.Objects {
168+
for h := range o.Objects {
169169
err := fun(h)
170170
if err != nil {
171171
if err == storer.ErrStop {

0 commit comments

Comments
 (0)