Skip to content

Commit

Permalink
Appease the linter on timeinterval.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gotjosh committed Sep 30, 2022
1 parent 632ddb8 commit ca0b74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timeinterval/timeinterval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit ca0b74b

Please sign in to comment.