mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
Fix closing bracket in Godoc
This commit is contained in:
@@ -29,8 +29,8 @@ import (
|
|||||||
|
|
||||||
// ToJSON converts a single YAML document into a JSON document
|
// ToJSON converts a single YAML document into a JSON document
|
||||||
// or returns an error. If the document appears to be JSON the
|
// or returns an error. If the document appears to be JSON the
|
||||||
// YAML decoding path is not used (so that error messages are)
|
// YAML decoding path is not used (so that error messages are
|
||||||
// JSON specific.
|
// JSON specific).
|
||||||
func ToJSON(data []byte) ([]byte, error) {
|
func ToJSON(data []byte) ([]byte, error) {
|
||||||
if hasJSONPrefix(data) {
|
if hasJSONPrefix(data) {
|
||||||
return data, nil
|
return data, nil
|
||||||
|
Reference in New Issue
Block a user