mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
build(deps): bump gopkg.in/yaml.v2 from 2.2.8 to 3.0.0 (#260)
* build(deps): bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0 Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.8 to 2.3.0. - [Release notes](https://github.com/go-yaml/yaml/releases) - [Commits](https://github.com/go-yaml/yaml/compare/v2.2.8...v2.3.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * bump gopkg.in/yaml to v3 * set indentation to 2 Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8d9c54f1df
commit
342db66d96
@@ -191,12 +191,12 @@ func TestStringMarshalYAML(t *testing.T) {
|
||||
{
|
||||
name: "string marshal YAML",
|
||||
value: "foo",
|
||||
expected: String("foo"),
|
||||
expected: "foo",
|
||||
},
|
||||
{
|
||||
name: "string marshal YAML",
|
||||
value: "lorem ipsum",
|
||||
expected: String("lorem ipsum"),
|
||||
expected: "lorem ipsum",
|
||||
},
|
||||
{
|
||||
name: "string marshal YAML",
|
||||
|
||||
@@ -152,7 +152,7 @@ func (s String) MarshalYAML() (interface{}, error) {
|
||||
if len(string(s)) == 0 || string(s) == `""` {
|
||||
return nil, nil
|
||||
}
|
||||
return s, nil
|
||||
return string(s), nil
|
||||
}
|
||||
|
||||
// Empty represents an empty 'string' which is marshaled to `""` in JSON and YAML
|
||||
|
||||
Reference in New Issue
Block a user