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
a25e0b6c
Commit
a25e0b6c
authored
Nov 30, 2016
by
Matt Butcher
Committed by
GitHub
Nov 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1600 from technosophos/fix/document-errnotlist
fix(helm): fix doc string for ErrNotList
parents
d84deb5b
2c326895
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
parser.go
cmd/helm/strvals/parser.go
+3
-2
No files found.
cmd/helm/strvals/parser.go
View file @
a25e0b6c
...
@@ -26,6 +26,9 @@ import (
...
@@ -26,6 +26,9 @@ import (
"github.com/ghodss/yaml"
"github.com/ghodss/yaml"
)
)
// ErrNotList indicates that a non-list was treated as a list.
var
ErrNotList
=
errors
.
New
(
"not a list"
)
// ToYAML takes a string of arguments and converts to a YAML document.
// ToYAML takes a string of arguments and converts to a YAML document.
func
ToYAML
(
s
string
)
(
string
,
error
)
{
func
ToYAML
(
s
string
)
(
string
,
error
)
{
m
,
err
:=
Parse
(
s
)
m
,
err
:=
Parse
(
s
)
...
@@ -156,8 +159,6 @@ func (t *parser) val() ([]rune, error) {
...
@@ -156,8 +159,6 @@ func (t *parser) val() ([]rune, error) {
return
v
,
err
return
v
,
err
}
}
var
ErrNotList
=
errors
.
New
(
"not a list"
)
func
(
t
*
parser
)
valList
()
([]
interface
{},
error
)
{
func
(
t
*
parser
)
valList
()
([]
interface
{},
error
)
{
r
,
_
,
e
:=
t
.
sc
.
ReadRune
()
r
,
_
,
e
:=
t
.
sc
.
ReadRune
()
...
...
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