Commit 967e438b authored by fibonacci1729's avatar fibonacci1729

gofmt ...

parent a05b48f3
......@@ -91,6 +91,8 @@ func (s *Storage) ListFilterAny(filters ...FilterFunc) ([]*rspb.Release, error)
}
func Init(d driver.Driver) *Storage {
if d == nil { d = driver.NewMemory() }
if d == nil {
d = driver.NewMemory()
}
return &Storage{Driver: d}
}
......@@ -98,10 +98,10 @@ func TestStorageList(t *testing.T) {
assertErrNil(t.Fatal, storage.Create(rls6), "Storing release 'rls6'")
}
var listTests = []struct{
var listTests = []struct {
Description string
NumExpected int
ListFunc func() ([]*rspb.Release,error)
ListFunc func() ([]*rspb.Release, error)
}{
{"ListDeleted", 2, storage.ListDeleted},
{"ListDeployed", 2, storage.ListDeployed},
......@@ -147,7 +147,6 @@ func assertErrNil(eh func(args ...interface{}), err error, message string) {
}
}
/*
func releaseData() *rspb.Release {
var manifest = `apiVersion: v1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment