feat(rollback-storage): remove extraneous else block and fix type in records_test

pull/1155/head
fibonacci1729 8 years ago
parent 1d6c16175b
commit 83df6ebc4d

@ -181,16 +181,16 @@ func (s *releaseServer) GetReleaseStatus(c ctx.Context, req *services.GetRelease
}
var rel *release.Release
var err error
if req.Version <= 0 {
var err error
if rel, err = s.env.Releases.Deployed(req.Name); err != nil {
return nil, err
}
} else {
var err error
if rel, err = s.env.Releases.Get(req.Name, req.Version); err != nil {
return nil, err
}
}
if rel, err = s.env.Releases.Get(req.Name, req.Version); err != nil {
return nil, err
}
if rel.Info == nil {

@ -65,7 +65,7 @@ func TestRecordsRemove(t *testing.T) {
}{
{"remove valid key", "rls-a.v1", false},
{"remove invalid key", "rls-a.v", true},
{"remove non-existant key", "rls-z.v1", true},
{"remove non-existent key", "rls-z.v1", true},
}
rs := records([]*record{

Loading…
Cancel
Save