Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
83df6ebc
Commit
83df6ebc
authored
Sep 12, 2016
by
fibonacci1729
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(rollback-storage): remove extraneous else block and fix type in records_test
parent
1d6c1617
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
release_server.go
cmd/tiller/release_server.go
+6
-6
records_test.go
pkg/storage/driver/records_test.go
+1
-1
No files found.
cmd/tiller/release_server.go
View file @
83df6ebc
...
...
@@ -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
{
...
...
pkg/storage/driver/records_test.go
View file @
83df6ebc
...
...
@@ -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-exist
a
nt key"
,
"rls-z.v1"
,
true
},
{
"remove non-exist
e
nt key"
,
"rls-z.v1"
,
true
},
}
rs
:=
records
([]
*
record
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment