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:
dependabot-preview[bot]
2020-05-13 18:53:01 -04:00
committed by GitHub
parent 8d9c54f1df
commit 342db66d96
26 changed files with 3075 additions and 3084 deletions

View File

@@ -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",

View File

@@ -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