Commit 58c004bb authored by yuxiaobo's avatar yuxiaobo

Improve the quality of annotations

Signed-off-by: 's avataryuxiaobo <yuxiaobogo@163.com>
parent 0a488670
...@@ -106,7 +106,7 @@ func (c *createCmd) run() error { ...@@ -106,7 +106,7 @@ func (c *createCmd) run() error {
if c.starter != "" { if c.starter != "" {
// Create from the starter // Create from the starter
lstarter := filepath.Join(c.home.Starters(), c.starter) lstarter := filepath.Join(c.home.Starters(), c.starter)
// If path is absolute, we dont want to prefix it with helm starters folder // If path is absolute, we don't want to prefix it with helm starters folder
if filepath.IsAbs(c.starter) { if filepath.IsAbs(c.starter) {
lstarter = c.starter lstarter = c.starter
} }
......
...@@ -55,7 +55,7 @@ type Index struct { ...@@ -55,7 +55,7 @@ type Index struct {
charts map[string]*repo.ChartVersion charts map[string]*repo.ChartVersion
} }
// NewIndex creats a new Index. // NewIndex creates a new Index.
func NewIndex() *Index { func NewIndex() *Index {
return &Index{lines: map[string]string{}, charts: map[string]*repo.ChartVersion{}} return &Index{lines: map[string]string{}, charts: map[string]*repo.ChartVersion{}}
} }
......
...@@ -17,7 +17,7 @@ limitations under the License. ...@@ -17,7 +17,7 @@ limitations under the License.
/*Package chartutil contains tools for working with charts. /*Package chartutil contains tools for working with charts.
Charts are described in the protocol buffer definition (pkg/proto/hapi/charts). Charts are described in the protocol buffer definition (pkg/proto/hapi/charts).
This packe provides utilities for serializing and deserializing charts. This package provides utilities for serializing and deserializing charts.
A chart can be represented on the file system in one of two ways: A chart can be represented on the file system in one of two ways:
......
...@@ -54,6 +54,6 @@ func TestFilterAll(t *testing.T) { ...@@ -54,6 +54,6 @@ func TestFilterAll(t *testing.T) {
case r0.Version == 4: case r0.Version == 4:
t.Fatal("got release with status revision 4") t.Fatal("got release with status revision 4")
case r0.Info.Status.Code == rspb.Status_DELETED: case r0.Info.Status.Code == rspb.Status_DELETED:
t.Fatal("got release with status DELTED") t.Fatal("got release with status DELETED")
} }
} }
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