Appease the linter on `timeinterval.go` (#3085)

Signed-off-by: gotjosh <josue.abreu@gmail.com>

Signed-off-by: gotjosh <josue.abreu@gmail.com>
This commit is contained in:
gotjosh 2022-09-30 12:33:28 +01:00 committed by GitHub
parent fe0622ab14
commit 0a9a48d60f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -408,13 +408,13 @@ func (tz Location) MarshalText() ([]byte, error) {
return []byte(tz.Location.String()), nil
}
//MarshalYAML implements the yaml.Marshaler interface for Location.
// MarshalYAML implements the yaml.Marshaler interface for Location.
func (tz Location) MarshalYAML() (interface{}, error) {
bytes, err := tz.MarshalText()
return string(bytes), err
}
//MarshalJSON implements the json.Marshaler interface for Location.
// MarshalJSON implements the json.Marshaler interface for Location.
func (tz Location) MarshalJSON() (out []byte, err error) {
return json.Marshal(tz.String())
}