Skip to content

Commit

Permalink
Changed whitespacing in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryWilliams committed Apr 24, 2018
1 parent 6a59683 commit 7185780
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/chartutil/files.go
Expand Up @@ -211,8 +211,8 @@ func ToToml(v interface{}) string {
// always return a string, even on marshal error (empty string).
//
// This is designed to be called from a template.
//TODO:change the function signature in Helm 3
func ToJson(v interface{}) string { //nolint
// TODO: change the function signature in Helm 3
func ToJson(v interface{}) string { // nolint
data, err := json.Marshal(v)
if err != nil {
// Swallow errors inside of a template.
Expand All @@ -227,8 +227,8 @@ func ToJson(v interface{}) string { //nolint
// JSON documents. Additionally, because its intended use is within templates
// it tolerates errors. It will insert the returned error message string into
// m["Error"] in the returned map.
//TODO:change the function signature in Helm 3
func FromJson(str string) map[string]interface{} { //nolint
// TODO: change the function signature in Helm 3
func FromJson(str string) map[string]interface{} { // nolint
m := map[string]interface{}{}

if err := json.Unmarshal([]byte(str), &m); err != nil {
Expand Down

0 comments on commit 7185780

Please sign in to comment.