Merge pull request #18985 from mlafeldt/patch-1

Auto commit by PR queue bot
pull/6/head
k8s-merge-robot 2015-12-22 00:48:54 -08:00
commit 058896340d
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ import (
// ToJSON converts a single YAML document into a JSON document
// or returns an error. If the document appears to be JSON the
// YAML decoding path is not used (so that error messages are)
// JSON specific.
// YAML decoding path is not used (so that error messages are
// JSON specific).
func ToJSON(data []byte) ([]byte, error) {
if hasJSONPrefix(data) {
return data, nil